{"record":{"id":"ad9eced4f7a18808","repo":"flowable/flowable-engine","slug":"name-is-null-ad9ece","errorCode":null,"errorMessage":"name is null","messagePattern":"name is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"warning","filePath":"modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/DecisionQueryImpl.java","lineNumber":115,"sourceCode":"            throw new FlowableIllegalArgumentException(\"categoryLike is null\");\n        }\n        this.categoryLike = categoryLike;\n        return this;\n    }\n\n    @Override\n    public DecisionQueryImpl decisionCategoryNotEquals(String categoryNotEquals) {\n        if (categoryNotEquals == null) {\n            throw new FlowableIllegalArgumentException(\"categoryNotEquals is null\");\n        }\n        this.categoryNotEquals = categoryNotEquals;\n        return this;\n    }\n\n    @Override\n    public DecisionQueryImpl decisionName(String name) {\n        if (name == null) {\n            throw new FlowableIllegalArgumentException(\"name is null\");\n        }\n        this.name = name;\n        return this;\n    }\n\n    @Override\n    public DecisionQueryImpl decisionNameLike(String nameLike) {\n        if (nameLike == null) {\n            throw new FlowableIllegalArgumentException(\"nameLike is null\");\n        }\n        this.nameLike = nameLike;\n        return this;\n    }\n\n    @Override\n    public DecisionQueryImpl deploymentId(String deploymentId) {\n        if (deploymentId == null) {\n            throw new FlowableIllegalArgumentException(\"id is null\");","sourceCodeStart":97,"sourceCodeEnd":133,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/DecisionQueryImpl.java#L97-L133","documentation":"Fluent-setter validation in DecisionQueryImpl.decisionName: a null name filter was passed to the DMN decision query; the builder rejects explicit nulls to keep 'unset' and 'null filter' distinguishable.","triggerScenarios":"Calling decisionName(name) where name is null, typically from an unset request field or lookup miss.","commonSituations":"REST layer passing through a missing 'name' query parameter; decision name resolved from another system returning null.","solutions":["Guard with a null check before calling decisionName.","Use decisionNameLike if you need partial matching, still guarding for null.","Omit the filter entirely to query all decisions."],"exampleFix":"// before\nquery.decisionName(decisionName); // may be null\n\n// after\nif (decisionName != null) {\n    query.decisionName(decisionName);\n}","handlingStrategy":"validation","validationCode":"if (name != null) { query.decisionName(name); }","typeGuard":"boolean hasName = (name instanceof String s) && !s.isBlank();","tryCatchPattern":"try {\n    query.decisionName(name);\n} catch (FlowableIllegalArgumentException e) {\n    LOGGER.warn(\"decisionName called with null; filter skipped\");\n}","preventionTips":["Validate request parameters before mapping them into queries","Prefer Optional<String> in your service layer and only apply filters when present","Omit the filter call for unknown names"],"tags":["null-check","query","validation","java"],"backgroundTag":"null-argument","analyzedSha":"d6d39ce1c69ff244f2d9dc6af756a9b95e865586","analyzedAt":"2026-09-11T06:41:19.413Z","contentChangedAt":"2026-09-11T06:41:19.413Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}