Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Fix NPE in RulesItemRefresher which occurs during shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Vorburger <mike@vorburger.ch>
  • Loading branch information
vorburger committed Oct 6, 2016
1 parent 9a299d9 commit 1e55368
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ private synchronized void scheduleRuleRefresh() {
@Override
public void run() {
try {
modelRepository.reloadAllModelsOfType("rules");
if (modelRepository != null) {
modelRepository.reloadAllModelsOfType("rules");
}
} catch (Exception e) {
logger.debug("Exception occurred during execution: {}", e.getMessage(), e);
}
Expand Down

0 comments on commit 1e55368

Please sign in to comment.