fix nullpointer

This commit is contained in:
_Bastler 2022-11-09 16:14:54 +01:00
parent c6f8365e54
commit 3586bdbbcf

View File

@ -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)) {