-
Bug
-
Resolution: Done
-
Major
-
None
-
False
-
False
-
The CF analysis on this model https://github.com/kiegroup/kogito-examples/blob/stable/dmn-tracing-quarkus/src/main/resources/Prequalification.dmn causes a NPE with this request
curl -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' -d \ '{ "Credit Score": 600, "Loan Amount": 300000, "Appraised Value": 500000, "Best Rate": 0.03, "Borrower": { "Monthly Income": 10000, "Monthly Other Debt": 1000 } }' http://localhost:8080/Prequalification
{"goals":[{"id":"_e35ff5d4-e434-47ed-a61a-732820701361","name":"Qualified?","typeRef":"boolean","value":true,"originalValue":false,"kind":"UNIT"}],"searchDomains":[{"kind":"UNIT","name":"Appraised Value","typeRef":"number","components":null,"value":500000,"fixed":true},{"kind":"STRUCTURE","name":"Borrower","typeRef":"tBorrower","components":[{"kind":"UNIT","name":"Monthly Other Debt","typeRef":"number","components":null,"value":1000},{"kind":"UNIT","name":"Monthly Income","typeRef":"number","components":null,"value":10000}],"value":null},{"kind":"UNIT","name":"Loan Amount","typeRef":"number","components":null,"value":300000,"fixed":false,"domain":{"type":"RANGE","lowerBound":0,"upperBound":300000}},{"kind":"UNIT","name":"Credit Score","typeRef":"tCreditScore","components":null,"value":600,"fixed":true},{"kind":"UNIT","name":"Best Rate","typeRef":"number","components":null,"value":0.03,"fixed":true}]}
trusty_1 | Caused by: java.lang.NullPointerExceptiontrusty_1 | Caused by: java.lang.NullPointerExceptiontrusty_1 | at java.base/java.util.Objects.requireNonNull(Objects.java:221)trusty_1 | at org.kie.kogito.explainability.api.CounterfactualSearchDomainUnitDto.<init>(CounterfactualSearchDomainUnitDto.java:46)trusty_1 | at org.kie.kogito.trusty.service.common.messaging.MessagingUtils.modelToCounterfactualSearchDomainDto(MessagingUtils.java:92)trusty_1 | at org.kie.kogito.trusty.service.common.messaging.MessagingUtils.lambda$modelToCounterfactualSearchDomainDtoMap$3(MessagingUtils.java:127)