fix nullpointer
This commit is contained in:
@@ -329,7 +329,7 @@ public class PermissionManager implements UserDataProvider {
|
||||
List<Permission> existingPermissions = get(target, name);
|
||||
|
||||
for (Permission existingPermission : existingPermissions) {
|
||||
if (existingPermission.getExpires().isBefore(expires)) {
|
||||
if (existingPermission.getExpires().isBefore(permissionsExpires)) {
|
||||
if (starts != null) {
|
||||
if (existingPermission.getStarts() == null
|
||||
|| existingPermission.getStarts().isAfter(starts)) {
|
||||
|
||||
Reference in New Issue
Block a user