Skip to content

Commit

Permalink
fix for NP on triggers tab (adding element of TriggerType on top leve…
Browse files Browse the repository at this point in the history
…l of schema bacause of PCD search)
  • Loading branch information
skublik committed Mar 19, 2021
1 parent f96b563 commit 87cbae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Expand Up @@ -618,7 +618,8 @@ public static <T extends ObjectType> QName classToQName(PrismContext prismContex
}

public static <T extends Containerable> QName containerClassToQName(PrismContext prismContext, Class<T> clazz) {
return prismContext.getSchemaRegistry().findContainerDefinitionByCompileTimeClass(clazz).getTypeName();
PrismContainerDefinition<T> def = prismContext.getSchemaRegistry().findContainerDefinitionByCompileTimeClass(clazz);
return def == null ? null : def.getTypeName();
}

public static TaskType createSingleRecurrenceTask(String taskName, QName applicableType, ObjectQuery query,
Expand Down
Expand Up @@ -767,6 +767,7 @@
</xsd:complexType>
<xsd:element name="genericObject" type="tns:GenericObjectType" substitutionGroup="tns:object"/>

<xsd:element name="trigger" type="tns:TriggerType"/>
<xsd:complexType name="TriggerType">
<xsd:annotation>
<xsd:documentation>
Expand Down

0 comments on commit 87cbae2

Please sign in to comment.