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 7ed0f26..1918a36 100755 --- a/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java +++ b/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java @@ -441,8 +441,9 @@ public class PermissionManager implements UserDataProvider { permission.setAddon(permissionMapping.isAddon()); permission.setStarts(permissionStarts); permission.setExpires(permissionsExpires); + logger.debug("expires here: " + permission.getExpires()); } else { - if (permission.getExpires().isBefore(Instant.now())) { + if (permission.getExpires() == null || permission.getExpires().isBefore(Instant.now())) { permission.setExpires(Instant.now()); }