Fix NPE when -logdir is not specified.

Patch by: jat
Review by: fabbott (TBR)


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6109 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/oophm/src/com/google/gwt/dev/OophmHostedModeBase.java b/dev/oophm/src/com/google/gwt/dev/OophmHostedModeBase.java
index b8930dd..908a578 100644
--- a/dev/oophm/src/com/google/gwt/dev/OophmHostedModeBase.java
+++ b/dev/oophm/src/com/google/gwt/dev/OophmHostedModeBase.java
@@ -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$")) {