This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 4_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/4_1_X by this push:
new ac57e6663b Fixing incomplete condition
ac57e6663b is described below
commit ac57e6663b9686458f059e0798808501556c6129
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Mon Nov 23 11:24:56 2026 +0100
Fixing incomplete condition
---
.../org/apache/syncope/core/flowable/impl/FlowableDeployUtils.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableDeployUtils.java
b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableDeployUtils.java
index 561fe1ffe1..461aad82e3 100644
---
a/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableDeployUtils.java
+++
b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/impl/FlowableDeployUtils.java
@@ -127,7 +127,7 @@ public final class FlowableDeployUtils {
private static void checkAttributes(final XMLStreamReader xtr) {
Set<String> unqualifiedAttributes =
BpmnXMLConstants.FLOWABLE_EXTENSIONS_NAMESPACE.equals(xtr.getNamespaceURI())
? FLOWABLE_ELEMENT_ATTRIBUTES.get(xtr.getLocalName())
- : Set.of();
+ : null;
for (int i = 0; i < xtr.getAttributeCount(); i++) {
String attributeNamespace = xtr.getAttributeNamespace(i);
@@ -138,7 +138,9 @@ public final class FlowableDeployUtils {
if (FLOWABLE_EXPRESSION_ATTRIBUTES.contains(attributeName)) {
checkExpression(xtr.getAttributeValue(i), reference);
}
- } else if (StringUtils.isBlank(attributeNamespace) &&
unqualifiedAttributes.contains(attributeName)) {
+ } else if (StringUtils.isBlank(attributeNamespace)
+ && (unqualifiedAttributes != null &&
unqualifiedAttributes.contains(attributeName))) {
+
checkExpression(xtr.getAttributeValue(i), reference);
}
}