mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 19:16:40 +01:00
Fix potential NPE in FlagValueCalculator.
This commit is contained in:
parent
0edb948a40
commit
54237c0038
@ -443,7 +443,9 @@ public <V> V getEffectiveFlag(final ProtectedRegion region, Flag<V> flag, @Nulla
|
||||
group = flag.getRegionGroupFlag().getDefault();
|
||||
}
|
||||
|
||||
if (subject == null) {
|
||||
if (group == null) {
|
||||
use = false;
|
||||
} else if (subject == null) {
|
||||
use = group.contains(Association.NON_MEMBER);
|
||||
} else if (!group.contains(subject.getAssociation(region))) {
|
||||
use = false;
|
||||
|
Loading…
Reference in New Issue
Block a user