Skip to content

Commit

Permalink
Avoid NPE in PgsqlGwcInitializer, TileLayerEvent.getOldName() may be …
Browse files Browse the repository at this point in the history
…null
  • Loading branch information
groldan committed Apr 24, 2024
1 parent b2b11dc commit 53340c6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ void onTileLayerEvent(TileLayerEvent event) {
cache.removeUncachedLayer(event.getName());
break;
case MODIFIED:
if (!Objects.equal(event.getOldName(), event.getName())) {
if (event.getOldName() != null
&& !Objects.equal(
event.getOldName(), event.getName())) {
log.info(
"TileLayer {} renamed to {}, notifying in-memory CacheProvider",
event.getOldName(),
Expand Down

0 comments on commit 53340c6

Please sign in to comment.