* CrawlJob.java

avoid NPE on build-then-terminate without a launch
This commit is contained in:
nlevitt committed 2011-07-25 19:16:31 +00:00
1 parent e2f29992d4
commit efff6feed6
1 file changed
+4 -2
@@ -562,8 +562,10 @@ public class CrawlJob implements Comparable<CrawlJob>, ApplicationListener<Appli
ac = null;
}
xmlOkAt = new DateTime(0);
getJobLogger().removeHandler(currentLaunchJobLogHandler);
currentLaunchJobLogHandler.close();
if (currentLaunchJobLogHandler != null) {
getJobLogger().removeHandler(currentLaunchJobLogHandler);
currentLaunchJobLogHandler.close();
}
getJobLogger().log(Level.INFO,"Job instance discarded");
return true;
}