[Swift-commit] r5828 - trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Thu Jul 12 12:50:22 CDT 2012


Author: hategan
Date: 2012-07-12 12:50:22 -0500 (Thu, 12 Jul 2012)
New Revision: 5828

Modified:
   trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/ANSIMonitor.java
Log:
avoid NPE at the end of run if TUI is closed without stopping the run

Modified: trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/ANSIMonitor.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/ANSIMonitor.java	2012-07-12 17:40:02 UTC (rev 5827)
+++ trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/ANSIMonitor.java	2012-07-12 17:50:22 UTC (rev 5828)
@@ -92,7 +92,9 @@
 
     public void shutdown() {
         try {
-            disp.close();
+            if (disp != null) {
+                disp.close();
+            }
         }
         catch (IOException e) {
             e.printStackTrace();




More information about the Swift-commit mailing list