{"record":{"id":"8deb112891f1627c","repo":"flowable/flowable-engine","slug":"deploymentname-is-null","errorCode":null,"errorMessage":"deploymentName is null","messagePattern":"deploymentName 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":78,"sourceCode":"            throw new FlowableIllegalArgumentException(\"Deployment id is null\");\n        }\n        this.deploymentId = deploymentId;\n        return this;\n    }\n    \n    @Override\n    public AppDeploymentQueryImpl 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 AppDeploymentQueryImpl 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 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\");","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-app-engine/src/main/java/org/flowable/app/engine/impl/repository/AppDeploymentQueryImpl.java#L60-L96","documentation":"AppDeploymentQueryImpl.deploymentName() throws FlowableIllegalArgumentException when the deploymentName argument is null. The exact-name filter must be a concrete string; null is rejected eagerly by the fluent query API.","triggerScenarios":"Calling deploymentName(null) with a name sourced from config or a request parameter that is absent.","commonSituations":"Optional search field in a REST endpoint bound as null, or properties file missing the deployment.name key.","solutions":["Check name != null before invoking deploymentName.","Only call deploymentName when the user actually supplied a name filter.","Use deploymentNameLike only with a non-null pattern.","Catch FlowableIllegalArgumentException and map to a client validation error."],"exampleFix":"// before\nquery.deploymentName(request.name); // may be null\n// after\nif (request.name != null) query.deploymentName(request.name);","handlingStrategy":"validation","validationCode":"if (deploymentName != null) query.deploymentName(deploymentName);","typeGuard":null,"tryCatchPattern":"try {\n    query.deploymentName(name);\n} catch (org.flowable.common.engine.api.FlowableIllegalArgumentException e) {\n    logger.warn(\"Ignoring query: {}\", e.getMessage());\n    query = repoService.createDeploymentQuery(); // rebuild unfiltered\n}","preventionTips":["Guard every optional query filter with a null check","Normalize empty form fields to null-and-skip semantics","Centralize filter assembly in a helper that applies guards"],"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"}