Skip to content

Commit

Permalink
Fixed possible NPE when shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
AB-xdev committed May 17, 2024
1 parent d73e434 commit 044f8d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 1.0.2
* Fixed possible NPE when shutting down

# 1.0.1
* Restore original logging with SLF4j

# 1.0.0
<i>Initial release</i>
_Initial release_
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,18 @@ protected void shutdownCleanupExecutorIfRequired()
{
if(this.cache.isEmpty())
{
if(this.cleanUpExecutor == null)
{
return;
}
synchronized(this.cleanUpExecutorLock)
{
LOG.trace("Shutting down cleanupExecutor");
this.cleanUpExecutor.shutdownNow();
this.cleanUpExecutor = null;
if(this.cleanUpExecutor != null)
{
this.cleanUpExecutor.shutdownNow();
this.cleanUpExecutor = null;
}
}
}
}
Expand Down

0 comments on commit 044f8d3

Please sign in to comment.