{"record":{"id":"7e3345187c20d231","repo":"flowable/flowable-engine","slug":"deploymentnamelike-is-null-7e3345","errorCode":null,"errorMessage":"deploymentNameLike is null","messagePattern":"deploymentNameLike is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-engine/src/main/java/org/flowable/engine/impl/DeploymentQueryImpl.java","lineNumber":96,"sourceCode":"            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\");\n        }\n        this.category = deploymentCategory;\n        return this;\n    }\n\n    @Override\n    public DeploymentQueryImpl deploymentCategoryLike(String categoryLike) {\n        if (categoryLike == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentCategoryLike is null\");","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-engine/src/main/java/org/flowable/engine/impl/DeploymentQueryImpl.java#L78-L114","documentation":"DeploymentQueryImpl.deploymentNameLike(String) throws FlowableIllegalArgumentException when the nameLike argument is null. This filter performs a SQL LIKE match on deployment names (e.g. \"%MyDeployment%\"), and Flowable rejects null at the builder call instead of emitting a broken LIKE clause.","triggerScenarios":"repositoryService.createDeploymentQuery().deploymentNameLike(null); typically a search box or filter variable that was never set.","commonSituations":"Search UIs passing the raw (null) search term; refactors renaming variables so an unset field is handed to the builder.","solutions":["Pass a non-null LIKE pattern, including % wildcards as needed.","Guard: if (nameLike != null) query.deploymentNameLike(nameLike).","Default to an empty/omitted filter when the search term is absent."],"exampleFix":"// before\nquery.deploymentNameLike(searchTerm); // throws when null\n// after\nif (searchTerm != null) {\n    query.deploymentNameLike(\"%\" + searchTerm + \"%\");\n}","handlingStrategy":"validation","validationCode":"if (searchTerm != null) {\n    query.deploymentNameLike(\"%\" + searchTerm + \"%\");\n}","typeGuard":"boolean hasSearchTerm(String term) { return term != null && !term.isEmpty(); }","tryCatchPattern":"try {\n    query.deploymentNameLike(nameLike);\n} catch (FlowableIllegalArgumentException e) {\n    log.warn(\"Null nameLike filter ignored\", e);\n}","preventionTips":["Treat empty search inputs as 'no filter', not null patterns","Wrap LIKE filters in helpers that add wildcards and null-checks","Escape user input before embedding it in LIKE patterns"],"tags":["flowable","query-builder","null-argument","like-filter"],"backgroundTag":"null-argument","analyzedSha":"d6d39ce1c69ff244f2d9dc6af756a9b95e865586","analyzedAt":"2026-09-11T06:41:19.413Z","contentChangedAt":"2026-09-11T06:41:19.413Z","schemaVersion":2},"datasetVersion":"2026-09-18T11:17:12.947Z"}