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

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Sun Mar 29 15:39:04 CDT 2009


Author: hategan
Date: 2009-03-29 15:39:03 -0500 (Sun, 29 Mar 2009)
New Revision: 2768

Modified:
   trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java
Log:
one more

Modified: trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java	2009-03-29 20:35:43 UTC (rev 2767)
+++ trunk/src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/ANSIContext.java	2009-03-29 20:39:03 UTC (rev 2768)
@@ -245,7 +245,7 @@
         if (count == 0) {
             count = 10;
             int[] size = querySize();
-            if (size[0] != buf.getWidth() || size[1] != buf.getHeight()) {
+            if (size != null && size[0] != buf.getWidth() || size[1] != buf.getHeight()) {
                 buf.resize(size[0], size[1]);
                 screen.setSize(size[0], size[1]);
                 screen.invalidate();




More information about the Swift-commit mailing list