{"record":{"id":"76ae79dcd659d55c","repo":"flowable/flowable-engine","slug":"deploymentcategory-is-null-76ae79","errorCode":null,"errorMessage":"deploymentCategory is null","messagePattern":"deploymentCategory is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDeploymentQueryImpl.java","lineNumber":90,"sourceCode":"            throw new FlowableIllegalArgumentException(\"deploymentName is null\");\n        }\n        this.name = deploymentName;\n        return this;\n    }\n\n    @Override\n    public EventDeploymentQueryImpl 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 EventDeploymentQueryImpl 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 EventDeploymentQueryImpl 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 EventDeploymentQueryImpl parentDeploymentId(String parentDeploymentId) {\n        if (parentDeploymentId == null) {\n            throw new FlowableIllegalArgumentException(\"parentDeploymentId is null\");","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDeploymentQueryImpl.java#L72-L108","documentation":"EventDeploymentQueryImpl.deploymentCategory sets an exact category filter on the deployment query. It throws FlowableIllegalArgumentException when deploymentCategory is null because null is not a valid filter value for the SQL query.","triggerScenarios":"Calling deploymentCategory(null), typically when the category value comes from an optional descriptor, config entry, or map lookup that is absent.","commonSituations":"Category metadata not configured at deploy time (EventDeploymentBuilder.category not called), config key missing, passing a lookup result straight through without null-checking.","solutions":["Pass the exact category assigned at deployment time (EventDeploymentBuilder.category(...))","Omit the category filter when the category is unknown","Null-check or default the category variable before building the query"],"exampleFix":"// before\nquery.deploymentCategory(category); // may be null\n// after\nif (category != null) {\n    query.deploymentCategory(category);\n}","handlingStrategy":"validation","validationCode":"if (category == null || category.isEmpty()) { throw new IllegalArgumentException(\"category required for deploymentCategory()\"); }","typeGuard":"boolean hasText(String s) { return s != null && !s.trim().isEmpty(); }","tryCatchPattern":"try { q.deploymentCategory(category).list(); } catch (FlowableIllegalArgumentException e) { log.warn(\"category null, skipping filter\"); }","preventionTips":["Assign categories explicitly with EventDeploymentBuilder.category(...) at deploy time","Null-check lookups that supply the category value","Omit the filter when the category is unknown rather than passing null"],"tags":["flowable","query","null-argument","deployment"],"backgroundTag":"null-argument","analyzedSha":"d6d39ce1c69ff244f2d9dc6af756a9b95e865586","analyzedAt":"2026-09-11T06:41:19.413Z","contentChangedAt":"2026-09-11T06:41:19.413Z","schemaVersion":2},"datasetVersion":"2026-09-18T16:30:33.424Z"}