{"record":{"id":"34a6c45d7057ee36","repo":"flowable/flowable-engine","slug":"deploymentname-is-null-34a6c4","errorCode":null,"errorMessage":"deploymentName is null","messagePattern":"deploymentName is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-engine/src/main/java/org/flowable/engine/impl/DeploymentQueryImpl.java","lineNumber":87,"sourceCode":"            throw new FlowableIllegalArgumentException(\"Deployment id is null\");\n        }\n        this.deploymentId = deploymentId;\n        return this;\n    }\n\n    @Override\n    public DeploymentQueryImpl deploymentIds(List<String> deploymentIds) {\n        if (deploymentIds == null) {\n            throw new FlowableIllegalArgumentException(\"Deployment ids is null\");\n        }\n        this.deploymentIds = deploymentIds;\n        return this;\n    }\n\n    @Override\n    public DeploymentQueryImpl deploymentName(String deploymentName) {\n        if (deploymentName == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentName is null\");\n        }\n        this.name = deploymentName;\n        return this;\n    }\n\n    @Override\n    public DeploymentQueryImpl 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 DeploymentQueryImpl deploymentCategory(String deploymentCategory) {\n        if (deploymentCategory == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentCategory is null\");","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-engine/src/main/java/org/flowable/engine/impl/DeploymentQueryImpl.java#L69-L105","documentation":"DeploymentQueryImpl.deploymentName(String) throws FlowableIllegalArgumentException when the deploymentName argument is null. The value is stored as the query's name filter, and Flowable validates it eagerly so a null filter never produces a SQL query with a null equality predicate.","triggerScenarios":"repositoryService.createDeploymentQuery().deploymentName(null), commonly when the name comes from user input or a properties/config value that is missing.","commonSituations":"Admin UIs with optional name filters wired straight into the builder; Spring properties like deployment.name not set, injecting null.","solutions":["Pass a concrete deployment name string, or use deploymentNameLike with a wildcard if partial matching is needed.","Guard the call: only invoke deploymentName when the name is non-null.","Verify the configuration/property source actually provides the name."],"exampleFix":"// before\nquery.deploymentName(deploymentName);\n// after\nif (deploymentName != null) {\n    query.deploymentName(deploymentName);\n}","handlingStrategy":"validation","validationCode":"if (deploymentName != null && !deploymentName.isEmpty()) {\n    query.deploymentName(deploymentName);\n}","typeGuard":"boolean hasDeploymentName(String name) { return name != null && !name.isEmpty(); }","tryCatchPattern":"try {\n    query.deploymentName(deploymentName);\n} catch (FlowableIllegalArgumentException e) {\n    log.warn(\"Null deployment name filter ignored\", e);\n}","preventionTips":["Make optional filters conditional instead of passing null","Provide defaults for name properties in configuration","Validate user-supplied filter inputs at the controller layer"],"tags":["flowable","query-builder","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"}