{"record":{"id":"6a96d7e86015a536","repo":"flowable/flowable-engine","slug":"deploymentcategory-is-null","errorCode":null,"errorMessage":"deploymentCategory is null","messagePattern":"deploymentCategory is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-app-engine/src/main/java/org/flowable/app/engine/impl/repository/AppDeploymentQueryImpl.java","lineNumber":96,"sourceCode":"            throw new FlowableIllegalArgumentException(\"deploymentName is null\");\n        }\n        this.name = deploymentName;\n        return this;\n    }\n\n    @Override\n    public AppDeploymentQueryImpl deploymentNameLike(String nameLike) {\n        if (nameLike == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentNameLike is null\");\n        }\n        this.nameLike = nameLike;\n        return this;\n    }\n\n    @Override\n    public AppDeploymentQueryImpl deploymentCategory(String deploymentCategory) {\n        if (deploymentCategory == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentCategory is null\");\n        }\n        this.category = deploymentCategory;\n        return this;\n    }\n\n    @Override\n    public AppDeploymentQueryImpl deploymentCategoryNotEquals(String deploymentCategoryNotEquals) {\n        if (deploymentCategoryNotEquals == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentCategoryExclude is null\");\n        }\n        this.categoryNotEquals = deploymentCategoryNotEquals;\n        return this;\n    }\n    \n    @Override\n    public AppDeploymentQueryImpl deploymentKey(String deploymentKey) {\n        if (deploymentKey == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentKey is null\");","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-app-engine/src/main/java/org/flowable/app/engine/impl/repository/AppDeploymentQueryImpl.java#L78-L114","documentation":"AppDeploymentQueryImpl.deploymentCategory() throws FlowableIllegalArgumentException when the category argument is null. Category filtering requires an explicit value; the builder rejects null before the query executes.","triggerScenarios":"Calling deploymentCategory(null) with a category constant that is unset, e.g. read from a config property that does not exist.","commonSituations":"Environment-specific category configured in one environment but missing in another; optional category filter in an admin UI passed through as null.","solutions":["Verify the category constant/config value is set before querying.","Conditionally add the filter only when category != null.","Check that the app was actually deployed with a category if results matter (set it at deploy time with .category(...)).","Catch FlowableIllegalArgumentException and surface a validation message."],"exampleFix":"// before\nquery.deploymentCategory(category); // may be null\n// after\nif (category != null) query.deploymentCategory(category);","handlingStrategy":"validation","validationCode":"if (category != null) query.deploymentCategory(category);","typeGuard":null,"tryCatchPattern":"try {\n    query.deploymentCategory(category);\n} catch (org.flowable.common.engine.api.FlowableIllegalArgumentException e) {\n    throw new javax.ws.rs.BadRequestException(\"category must not be null\", e);\n}","preventionTips":["Ensure deployment .category(...) is set at deploy time if you filter on it","Keep category constants in one non-null config source","Guard optional category filters"],"tags":["java","flowable","query","null-check"],"backgroundTag":"missing-required-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"}