{"record":{"id":"166a5c7143751d01","repo":"flowable/flowable-engine","slug":"namelikeignorecase-is-null","errorCode":null,"errorMessage":"nameLikeIgnoreCase is null","messagePattern":"nameLikeIgnoreCase is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/repository/CaseDefinitionQueryImpl.java","lineNumber":141,"sourceCode":"            throw new FlowableIllegalArgumentException(\"name is null\");\n        }\n        this.name = name;\n        return this;\n    }\n\n    @Override\n    public CaseDefinitionQueryImpl caseDefinitionNameLike(String nameLike) {\n        if (nameLike == null) {\n            throw new FlowableIllegalArgumentException(\"nameLike is null\");\n        }\n        this.nameLike = nameLike;\n        return this;\n    }\n\n    @Override\n    public CaseDefinitionQueryImpl caseDefinitionNameLikeIgnoreCase(String nameLikeIgnoreCase) {\n        if (nameLikeIgnoreCase == null) {\n            throw new FlowableIllegalArgumentException(\"nameLikeIgnoreCase is null\");\n        }\n        this.nameLikeIgnoreCase = nameLikeIgnoreCase;\n        return this;\n    }\n\n    @Override\n    public CaseDefinitionQueryImpl deploymentId(String deploymentId) {\n        if (deploymentId == null) {\n            throw new FlowableIllegalArgumentException(\"id is null\");\n        }\n        this.deploymentId = deploymentId;\n        return this;\n    }\n\n    @Override\n    public CaseDefinitionQueryImpl deploymentIds(Set<String> deploymentIds) {\n        if (deploymentIds == null) {\n            throw new FlowableIllegalArgumentException(\"ids are null\");","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/repository/CaseDefinitionQueryImpl.java#L123-L159","documentation":"FlowableIllegalArgumentException thrown by CaseDefinitionQueryImpl.caseDefinitionNameLikeIgnoreCase(String) when the ignore-case nameLike pattern is null. Like setters share the same eager null validation as exact-match setters; null is not a valid pattern. An unfiltered query (no setter call) already matches all definitions.","triggerScenarios":"Calling caseDefinitionNameLikeIgnoreCase(null) on a CaseDefinitionQuery, usually from an optional search-string variable that is null.","commonSituations":"Case-insensitive search features where the pattern comes from user input or an external service response that was null.","solutions":["Pass a non-null pattern, e.g. caseDefinitionNameLikeIgnoreCase(\"%mycase%\").","Guard the call: only set the filter when the pattern is non-null.","Fix the upstream source returning null for the search pattern."],"exampleFix":"// before\nquery.caseDefinitionNameLikeIgnoreCase(namePattern); // may be null\n\n// after\nif (namePattern != null) {\n    query.caseDefinitionNameLikeIgnoreCase(namePattern);\n}","handlingStrategy":"validation","validationCode":"if (nameLikeIgnoreCase != null) {\n    query.caseDefinitionNameLikeIgnoreCase(nameLikeIgnoreCase);\n}","typeGuard":"boolean hasPattern = nameLikeIgnoreCase != null && !nameLikeIgnoreCase.isEmpty();","tryCatchPattern":"try {\n    query.caseDefinitionNameLikeIgnoreCase(pattern);\n} catch (FlowableIllegalArgumentException e) {\n    // pattern was null — use unfiltered query\n}","preventionTips":["Keep a shared helper like applyIfPresent(pattern, query::caseDefinitionNameLikeIgnoreCase) to centralize null-guards.","Normalize search input (trim/empty-to-null) once at the boundary instead of at each query site."],"tags":["flowable","cmmn","query","ignore-case","null-check"],"backgroundTag":"null-argument","analyzedSha":"d6d39ce1c69ff244f2d9dc6af756a9b95e865586","analyzedAt":"2026-09-11T06:41:19.413Z","contentChangedAt":"2026-09-11T06:41:19.413Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}