{"record":{"id":"aa9725a8b399a8d3","repo":"flowable/flowable-engine","slug":"resourcenamelike-is-null-aa9725","errorCode":null,"errorMessage":"resourceNameLike is null","messagePattern":"resourceNameLike is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/ChannelDefinitionQueryImpl.java","lineNumber":303,"sourceCode":"    @Override\n    public ChannelDefinitionQueryImpl channelCreateTimeBefore(Date createTimeBefore) {\n        this.createTimeBefore = createTimeBefore;\n        return this;\n    }\n\n    @Override\n    public ChannelDefinitionQueryImpl channelDefinitionResourceName(String resourceName) {\n        if (resourceName == null) {\n            throw new FlowableIllegalArgumentException(\"resourceName is null\");\n        }\n        this.resourceName = resourceName;\n        return this;\n    }\n\n    @Override\n    public ChannelDefinitionQueryImpl channelDefinitionResourceNameLike(String resourceNameLike) {\n        if (resourceNameLike == null) {\n            throw new FlowableIllegalArgumentException(\"resourceNameLike is null\");\n        }\n        this.resourceNameLike = resourceNameLike;\n        return this;\n    }\n\n    @Override\n    public ChannelDefinitionQueryImpl tenantId(String tenantId) {\n        if (tenantId == null) {\n            throw new FlowableIllegalArgumentException(\"form tenantId is null\");\n        }\n        this.tenantId = tenantId;\n        return this;\n    }\n\n    @Override\n    public ChannelDefinitionQueryImpl tenantIdLike(String tenantIdLike) {\n        if (tenantIdLike == null) {\n            throw new FlowableIllegalArgumentException(\"form tenantId is null\");","sourceCodeStart":285,"sourceCodeEnd":321,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/ChannelDefinitionQueryImpl.java#L285-L321","documentation":"ChannelDefinitionQueryImpl.channelDefinitionResourceNameLike() throws FlowableIllegalArgumentException when resourceNameLike is null. The LIKE filter needs a non-null pattern string; null would be invalid in the generated query, so the library fails fast. It means the caller supplied a null pattern.","triggerScenarios":"Calling channelDefinitionResourceNameLike(null), usually when the pattern is composed from user input or configuration that was absent.","commonSituations":"Search/filter UIs forwarding an empty (null) search box value; optional config keys defaulting to null instead of a wildcard pattern.","solutions":["Pass a valid non-null LIKE pattern, e.g. channelDefinitionResourceNameLike(\"%my.channel%\")","Guard the call: only invoke it when the pattern is non-null","Default absent patterns to \"%\" (match all) instead of passing null"],"exampleFix":"// before\nquery.channelDefinitionResourceNameLike(pattern);\n// after\nif (pattern != null) { query.channelDefinitionResourceNameLike(pattern); }","handlingStrategy":"validation","validationCode":"Objects.requireNonNull(resourceNameLike, \"resourceNameLike must not be null\");","typeGuard":"null","tryCatchPattern":"null","preventionTips":["Fail fast on null patterns before entering query building"],"tags":["null","query","like-filter","event-registry"],"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"}