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