mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 07:24:41 +00:00
* CrawlJob.java
avoid NPE on build-then-terminate without a launch
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user