From 3586bdbbcf4cdb135991a2705180135e14333b90 Mon Sep 17 00:00:00 2001 From: _Bastler Date: Wed, 9 Nov 2022 16:14:54 +0100 Subject: [PATCH] fix nullpointer --- .../main/java/de/bstly/we/businesslogic/PermissionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java b/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java index 0b5876d..f340425 100755 --- a/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java +++ b/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java @@ -329,7 +329,7 @@ public class PermissionManager implements UserDataProvider { List 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)) {