{"record":{"id":"92132c91ada80d96","repo":"flowable/flowable-engine","slug":"deploymentnamelike-is-null","errorCode":null,"errorMessage":"deploymentNameLike is null","messagePattern":"deploymentNameLike 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":87,"sourceCode":"            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\");\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\");","sourceCodeStart":69,"sourceCodeEnd":105,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-app-engine/src/main/java/org/flowable/app/engine/impl/repository/AppDeploymentQueryImpl.java#L69-L105","documentation":"AppDeploymentQueryImpl.deploymentNameLike() throws FlowableIllegalArgumentException when the nameLike pattern argument is null. The LIKE filter needs a non-null pattern string; null is rejected at call time.","triggerScenarios":"Calling deploymentNameLike(null) — the parameter (named nameLike in the API) is null, often an optional search term never defaulted.","commonSituations":"Building a dynamic query where a wildcard clause is only added sometimes but the call is unconditional; null from an empty form field not normalized to a value.","solutions":["Guard: only call deploymentNameLike when the pattern is non-null (and non-empty).","Normalize empty/null inputs to 'skip this filter' in your query-builder helper.","Provide a default pattern like \"%\" if you intend an all-match search.","Catch FlowableIllegalArgumentException at the boundary for a clean error message."],"exampleFix":"// before\nquery.deploymentNameLike(searchTerm); // may be null\n// after\nif (searchTerm != null && !searchTerm.isEmpty()) {\n    query.deploymentNameLike(\"%\" + searchTerm + \"%\");\n}","handlingStrategy":"validation","validationCode":"if (nameLike != null && !nameLike.isBlank()) query.deploymentNameLike(\"%\" + nameLike + \"%\");","typeGuard":"boolean isNotBlank(String s) { return s != null && !s.isBlank(); }","tryCatchPattern":"try {\n    query.deploymentNameLike(pattern);\n} catch (org.flowable.common.engine.api.FlowableIllegalArgumentException e) {\n    throw new javax.ws.rs.BadRequestException(\"nameLike must not be null\", e);\n}","preventionTips":["Skip LIKE filters when the search term is absent","Trim and check emptiness before wrapping with wildcards","Use Optional<String> in your query-builder API to force explicit handling"],"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"}