mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-22 10:49:46 +00:00
Fix NPE in Permissible#recalculatePermissions
This commit is contained in:
2 files changed
+6
-2
No files matched your search
+3
-1
@@ -308,7 +308,9 @@ public class LPPermissible extends PermissibleBase {
|
||||
// because we encapsulate op status within QueryOptions, we need to invalidate
|
||||
// the contextmanager cache when op status changes.
|
||||
// (#invalidate is a fast call)
|
||||
this.queryOptionsSupplier.invalidate();
|
||||
if (this.queryOptionsSupplier != null) { // this method is called by the super class constructor, before this class has fully initialised
|
||||
this.queryOptionsSupplier.invalidate();
|
||||
}
|
||||
|
||||
// but we don't need to do anything else in this method, unlike the CB impl.
|
||||
}
|
||||
|
||||
+3
-1
@@ -294,7 +294,9 @@ public class LPPermissible extends PermissibleBase {
|
||||
// because we encapsulate op status within QueryOptions, we need to invalidate
|
||||
// the contextmanager cache when op status changes.
|
||||
// (#invalidate is a fast call)
|
||||
this.queryOptionsSupplier.invalidate();
|
||||
if (this.queryOptionsSupplier != null) { // this method is called by the super class constructor, before this class has fully initialised
|
||||
this.queryOptionsSupplier.invalidate();
|
||||
}
|
||||
|
||||
// but we don't need to do anything else in this method, unlike the CB impl.
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user