{"record":{"id":"6ac872d471e8ce5b","repo":"flowable/flowable-engine","slug":"categorylike-is-null-6ac872","errorCode":null,"errorMessage":"categoryLike is null","messagePattern":"categoryLike is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDefinitionQueryImpl.java","lineNumber":95,"sourceCode":"    @Override\n    public EventDefinitionQueryImpl eventDefinitionIds(Set<String> eventDefinitionIds) {\n        this.ids = eventDefinitionIds;\n        return this;\n    }\n\n    @Override\n    public EventDefinitionQueryImpl eventCategory(String category) {\n        if (category == null) {\n            throw new FlowableIllegalArgumentException(\"category is null\");\n        }\n        this.category = category;\n        return this;\n    }\n\n    @Override\n    public EventDefinitionQueryImpl eventCategoryLike(String categoryLike) {\n        if (categoryLike == null) {\n            throw new FlowableIllegalArgumentException(\"categoryLike is null\");\n        }\n        this.categoryLike = categoryLike;\n        return this;\n    }\n\n    @Override\n    public EventDefinitionQueryImpl eventCategoryNotEquals(String categoryNotEquals) {\n        if (categoryNotEquals == null) {\n            throw new FlowableIllegalArgumentException(\"categoryNotEquals is null\");\n        }\n        this.categoryNotEquals = categoryNotEquals;\n        return this;\n    }\n\n    @Override\n    public EventDefinitionQueryImpl eventDefinitionName(String name) {\n        if (name == null) {\n            throw new FlowableIllegalArgumentException(\"name is null\");","sourceCodeStart":77,"sourceCodeEnd":113,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDefinitionQueryImpl.java#L77-L113","documentation":"EventDefinitionQueryImpl.eventCategoryLike() throws FlowableIllegalArgumentException ('categoryLike is null') when the LIKE pattern is null. A non-null pattern is required to build the category LIKE filter, so the library fails at the setter instead of at query execution.","triggerScenarios":"Calling eventCategoryLike(null), usually when the pattern is dynamically composed (e.g. prefix + \"%\") and the prefix variable is null.","commonSituations":"Wildcard category searches with null prefixes; optional filter parameters passed straight through; config property lookups returning null.","solutions":["Pass a valid non-null pattern, e.g. eventCategoryLike(\"my.%\")","Null-check before calling; add the filter only when a pattern exists","Default missing patterns to \"%\" to match all categories"],"exampleFix":"// before\nquery.eventCategoryLike(categoryPrefix + \"%\");\n// after\nif (categoryPrefix != null) { query.eventCategoryLike(categoryPrefix + \"%\"); }","handlingStrategy":"validation","validationCode":"null","typeGuard":"null","tryCatchPattern":"null","preventionTips":["Default null patterns to wildcards or drop filters"],"tags":["null","query","like-filter","category"],"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:17:23.245Z"}