commit | 55cc5f4047bf0c975dce04005fd871ab64af4752 | [log] [tgz] |
---|---|---|
author | jat@google.com <jat@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Sep 10 02:44:20 2009 +0000 |
committer | jat@google.com <jat@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Thu Sep 10 02:44:20 2009 +0000 |
tree | f71b29fce53d14288f56a66ad932c59ee5babffd | |
parent | 38529e8e056258fc0e05ce165920d74e5c6bb010 [diff] |
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$")) {