don't return null on isAuthenticated method is boolean

Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
Michael Hirsch
2016-07-19 15:51:22 +02:00
parent cc986fe6f0
commit d1c889bf16

View File

@@ -96,7 +96,7 @@ public class SecurityContextTenantAware implements TenantAware {
@Override
public int hashCode() {
return (delegate != null) ? delegate.hashCode() : null;
return (delegate != null) ? delegate.hashCode() : -1;
}
@Override
@@ -126,7 +126,7 @@ public class SecurityContextTenantAware implements TenantAware {
@Override
public boolean isAuthenticated() {
return (delegate != null) ? delegate.isAuthenticated() : null;
return (delegate != null) ? delegate.isAuthenticated() : true;
}
@Override