This is an automated email from the ASF dual-hosted git repository.
gitgabrio pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git
The following commit(s) were added to refs/heads/main by this push:
new c345202f12 [incubator-kie-issues-drools#6468] Add null check to avoid
NPE exception (#6477)
c345202f12 is described below
commit c345202f12eb3b9510401d1b29b5e85282a43ee6
Author: Gabriele Cardosi <[email protected]>
AuthorDate: Fri Oct 10 10:14:43 2025 +0200
[incubator-kie-issues-drools#6468] Add null check to avoid NPE exception
(#6477)
Co-authored-by: Gabriele-Cardosi <[email protected]>
---
.../java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java
b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java
index 6c7446ac58..d3100be595 100644
---
a/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java
+++
b/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/compiler/BusinessKnowledgeModelCompiler.java
@@ -96,7 +96,7 @@ public class BusinessKnowledgeModelCompiler implements
DRGElementCompiler {
type.getName() );
}
}
- } else if (bkm.getVariable().getTypeRef() == null &&
bkm.getEncapsulatedLogic().getExpression() != null &&
bkm.getEncapsulatedLogic().getExpression().getTypeRef() != null) {
+ } else if (bkm.getVariable().getTypeRef() == null &&
bkm.getEncapsulatedLogic() != null &&
bkm.getEncapsulatedLogic().getExpression() != null &&
bkm.getEncapsulatedLogic().getExpression().getTypeRef() != null) {
type = compiler.resolveTypeRef(model, bkm,
bkm.getEncapsulatedLogic().getExpression(),
bkm.getEncapsulatedLogic().getExpression().getTypeRef());
} else {
// for now the call bellow will return type UNKNOWN
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]