Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Alexander Kuppe2010-10-26 15:44:46 -0400
committerMarkus Alexander Kuppe2010-10-26 15:44:46 -0400
commit94af357a559cb3f6d6abd22855526d40e2de513b (patch)
treebdfa114c86984c3729cf663e5aefa48ab346b083
parent1bcef5a625977220394dc855629782265c488397 (diff)
downloadorg.eclipse.ecf-94af357a559cb3f6d6abd22855526d40e2de513b.tar.gz
org.eclipse.ecf-94af357a559cb3f6d6abd22855526d40e2de513b.tar.xz
org.eclipse.ecf-94af357a559cb3f6d6abd22855526d40e2de513b.zip
RESOLVED - bug 328772: org.eclipse.ecf.core.status.SerializableStatus.OK_STATUS causes exception in org.eclipse.ecf.core.status.SerializableStatus.checkForSerializable(Throwable) due to null
https://bugs.eclipse.org/bugs/show_bug.cgi?id=328772
-rw-r--r--framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/status/SerializableStatus.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/status/SerializableStatus.java b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/status/SerializableStatus.java
index bafd8410c..583819db8 100644
--- a/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/status/SerializableStatus.java
+++ b/framework/bundles/org.eclipse.ecf/src/org/eclipse/ecf/core/status/SerializableStatus.java
@@ -178,7 +178,9 @@ public class SerializableStatus implements IStatus, Serializable {
* a low-level exception, or <code>null</code> if not applicable
*/
protected void setException(Throwable exception) {
- this.exception = checkForSerializable(exception);
+ // null is never serializable (https://bugs.eclipse.org/328772)
+ if (exception != null)
+ this.exception = checkForSerializable(exception);
}
private Throwable checkForSerializable(Throwable exception2) {

Back to the top