From 0167e519afd0def98e3b95297033656e99fe5c2b Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Mon, 12 Apr 2010 19:47:22 +0400 Subject: [PATCH] one more case of exceptiom from constructing DataFlavor --- .../codeInsight/editorActions/ReferenceTransferableData.java | 3 +++ .../codeInsight/editorActions/FoldingTransferableData.java | 3 +++ .../platform-api/src/com/intellij/openapi/editor/RawText.java | 3 +++ 3 files changed, 9 insertions(+) diff --git a/java/java-impl/src/com/intellij/codeInsight/editorActions/ReferenceTransferableData.java b/java/java-impl/src/com/intellij/codeInsight/editorActions/ReferenceTransferableData.java index d5fe437974e3..637e102e0691 100644 --- a/java/java-impl/src/com/intellij/codeInsight/editorActions/ReferenceTransferableData.java +++ b/java/java-impl/src/com/intellij/codeInsight/editorActions/ReferenceTransferableData.java @@ -100,6 +100,9 @@ public class ReferenceTransferableData implements TextBlockTransferableData, Clo catch (NoClassDefFoundError e) { return null; } + catch (IllegalArgumentException e) { + return null; + } return ourFlavor; } } diff --git a/platform/lang-impl/src/com/intellij/codeInsight/editorActions/FoldingTransferableData.java b/platform/lang-impl/src/com/intellij/codeInsight/editorActions/FoldingTransferableData.java index 6225bae2f458..e42037eec201 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/editorActions/FoldingTransferableData.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/editorActions/FoldingTransferableData.java @@ -96,6 +96,9 @@ public class FoldingTransferableData implements TextBlockTransferableData, Seria catch (NoClassDefFoundError e) { return null; } + catch (IllegalArgumentException e) { + return null; + } return ourFlavor; } } diff --git a/platform/platform-api/src/com/intellij/openapi/editor/RawText.java b/platform/platform-api/src/com/intellij/openapi/editor/RawText.java index 4c070ff737e9..5f4ca25828fa 100644 --- a/platform/platform-api/src/com/intellij/openapi/editor/RawText.java +++ b/platform/platform-api/src/com/intellij/openapi/editor/RawText.java @@ -58,6 +58,9 @@ public class RawText implements Cloneable, Serializable { catch (NoClassDefFoundError e) { return null; } + catch (IllegalArgumentException e) { + return null; + } return ourFlavor; }