Skip to content
Snippets Groups Projects
Commit 9e8f8407 authored by Michael Simon's avatar Michael Simon
Browse files

catch possible null value

parent 2e20092d
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,9 @@ public class IndexConfigBean implements Serializable {
}
public boolean getScheduledReload() {
return (appConfig.getLastLoad().compareTo(appConfig.getNextScheduledReload()) < 0);
if (appConfig.getLastLoad() == null || appConfig.getNextScheduledReload() == null)
return false;
else
return (appConfig.getLastLoad().compareTo(appConfig.getNextScheduledReload()) < 0);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment