Skip to content

Commit

Permalink
fixing NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Jun 26, 2019
1 parent 09b36ac commit e0bee3d
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -551,8 +551,12 @@ public AttributeFetchStrategyType getActivationFetchStrategy(QName propertyName)
//region Capabilities ========================================================
@Override
public CapabilitiesType getCapabilities() {
CapabilitiesType capabilitiesType = new CapabilitiesType();
capabilitiesType.setConfigured(schemaHandlingObjectTypeDefinitionType.getConfiguredCapabilities().clone());
CapabilityCollectionType configuredCapabilities = schemaHandlingObjectTypeDefinitionType.getConfiguredCapabilities();
if (configuredCapabilities == null) {
return null;
}
CapabilitiesType capabilitiesType = new CapabilitiesType();
capabilitiesType.setConfigured(configuredCapabilities);
return capabilitiesType;
}

Expand Down

0 comments on commit e0bee3d

Please sign in to comment.