mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-27 21:29:47 +01:00
Fix NPE from null path in AbstractFileWatcher (#2759)
This commit is contained in:
parent
17f67f6e13
commit
45188c6334
@ -145,7 +145,7 @@ public abstract class AbstractFileWatcher implements AutoCloseable {
|
|||||||
Path context = event.context();
|
Path context = event.context();
|
||||||
|
|
||||||
// ignore contexts with a name count of zero
|
// ignore contexts with a name count of zero
|
||||||
if (context.getNameCount() == 0) {
|
if (context == null || context.getNameCount() == 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user