fixed exception on accessing permissions which are not known to the server

This commit is contained in:
WolverinDEV 2019-10-24 18:41:12 +02:00
parent bb494e7054
commit b8fe2d4e0c

View file

@ -386,7 +386,7 @@ class PermissionValue {
log.trace(LogCategory.PERMISSIONS,
tr("Required permission test resulted for permission %s: %s. Required value: %s, Granted value: %s"),
this.type.name,
this.type ? this.type.name : "unknown",
result ? tr("granted") : tr("denied"),
requiredValue + (required ? " (" + tr("required") + ")" : ""),
this.hasValue() ? this.value : tr("none")