mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-19 09:39:16 +00:00
Fix NPE from null path in AbstractFileWatcher (#2759)
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user