Revision: 6109
Author: [email protected]
Date: Wed Sep  9 19:44:20 2009
Log: Fix NPE when -logdir is not specified.

Patch by: jat
Review by: fabbott (TBR)

http://code.google.com/p/google-web-toolkit/source/detail?r=6109

Modified:
  /trunk/dev/oophm/src/com/google/gwt/dev/OophmHostedModeBase.java

=======================================
--- /trunk/dev/oophm/src/com/google/gwt/dev/OophmHostedModeBase.java    Wed  
Sep  9 13:11:05 2009
+++ /trunk/dev/oophm/src/com/google/gwt/dev/OophmHostedModeBase.java    Wed  
Sep  9 19:44:20 2009
@@ -456,7 +456,7 @@
    }

    protected int getNextSessionCounter(File logdir) {
-    if (sessionCounter == 0) {
+    if (sessionCounter == 0 && logdir != null) {
        // first time only, figure out the "last" session count already in  
use
        for (String filename : logdir.list()) {
          if (filename.matches("^[A-Za-z0-9_$]*-[a-z]*-[0-9]*.log$")) {

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to