Skip to content

Commit

Permalink
fixing NPE while loading webapp
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed May 26, 2017
1 parent e80a7ea commit d064459
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -244,6 +244,10 @@ public PrismObject<SystemConfigurationType> getSystemConfiguration(OperationResu

public <O extends ObjectType, R extends ObjectType> PrismObject<R> searchOrgTreeWidthFirstReference(PrismObject<O> object,
Function<PrismObject<OrgType>, ObjectReferenceType> function, String shortDesc, Task task, OperationResult result) throws SchemaException {
if (object == null) {
LOGGER.trace("No object provided. Cannost find security policy specific for an object.");
return null;
}
PrismReference orgRef = object.findReference(ObjectType.F_PARENT_ORG_REF);
if (orgRef == null) {
return null;
Expand Down

0 comments on commit d064459

Please sign in to comment.