exceptions: assign result = null properly;
authorwenzelm
Wed, 23 Jan 2008 22:57:11 +0100
changeset 25948 aa65ada6f095
parent 25947 1f2f4d941e9e
child 25949 850b4c2d0f17
exceptions: assign result = null properly;
lib/jedit/plugin/isabelle/IsabellePlugin.scala
--- a/lib/jedit/plugin/isabelle/IsabellePlugin.scala	Wed Jan 23 22:57:09 2008 +0100
+++ b/lib/jedit/plugin/isabelle/IsabellePlugin.scala	Wed Jan 23 22:57:11 2008 +0100
@@ -110,8 +110,8 @@
           try {
             result = IsabellePlugin.isabelle.results.take.asInstanceOf[IsabelleProcess.Result]
           } catch {
-            case _: NullPointerException => null
-            case _: InterruptedException => null
+            case _: NullPointerException => result = null
+            case _: InterruptedException => result = null
           }
           if (result != null) {
             System.err.println(result)   // FIXME