Commit 9e8f8407 authored by michael.simon's avatar michael.simon
Browse files

catch possible null value

parent 2e20092d
......@@ -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);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment