From 45188c633439be22acf618cbe4a45d628aa1d1b0 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 9 Dec 2020 18:21:54 +0000 Subject: [PATCH] Fix NPE from null path in AbstractFileWatcher (#2759) --- .../implementation/file/watcher/AbstractFileWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/watcher/AbstractFileWatcher.java b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/watcher/AbstractFileWatcher.java index d8a29cc47..b2dfa830c 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/watcher/AbstractFileWatcher.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/implementation/file/watcher/AbstractFileWatcher.java @@ -145,7 +145,7 @@ public abstract class AbstractFileWatcher implements AutoCloseable { Path context = event.context(); // ignore contexts with a name count of zero - if (context.getNameCount() == 0) { + if (context == null || context.getNameCount() == 0) { continue; }