Print

Print


Commit in GeomConverter/src/org/lcsim/util/cache on MAIN
FileCache.java+9-61.3 -> 1.4
JM: fix bug where null PrintStream causes a crash

GeomConverter/src/org/lcsim/util/cache
FileCache.java 1.3 -> 1.4
diff -u -r1.3 -r1.4
--- FileCache.java	25 Sep 2007 19:53:29 -0000	1.3
+++ FileCache.java	4 Feb 2009 00:08:54 -0000	1.4
@@ -116,12 +116,15 @@
                   if (out != null) 
                   { 
                      got += l;
-                     print.print("Got ");
-                     print.print(format.format(got));
-                     print.print('/');
-                     print.print(format.format(size));
-                     print.print('\r');
-                     print.flush();
+                     if (print != null)
+                     {
+                         print.print("Got ");
+                         print.print(format.format(got));
+                         print.print('/');
+                         print.print(format.format(size));
+                         print.print('\r');
+                         print.flush();
+                     }
                   }
                }
             }
CVSspam 0.2.8