{"record":{"id":"266a761815ed22d6","repo":"flowable/flowable-engine","slug":"deploymentnamelike-is-null-266a76","errorCode":null,"errorMessage":"deploymentNameLike is null","messagePattern":"deploymentNameLike is null","errorType":"validation","errorClass":"FlowableIllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDeploymentQueryImpl.java","lineNumber":81,"sourceCode":"            throw new FlowableIllegalArgumentException(\"Deployment id is null\");\n        }\n        this.deploymentId = deploymentId;\n        return this;\n    }\n\n    @Override\n    public EventDeploymentQueryImpl 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 EventDeploymentQueryImpl 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 EventDeploymentQueryImpl 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 EventDeploymentQueryImpl deploymentCategoryNotEquals(String deploymentCategoryNotEquals) {\n        if (deploymentCategoryNotEquals == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentCategoryExclude is null\");","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDeploymentQueryImpl.java#L63-L99","documentation":"Fluent-setter validation in EventDeploymentQueryImpl.deploymentNameLike: the LIKE pattern for the deployment name is null and is rejected by the query builder before SQL generation.","triggerScenarios":"Calling deploymentNameLike(null), e.g. building a pattern like 'events-%' from an optional prefix that is null.","commonSituations":"Wildcard search built from user/config input that is missing, copy-paste errors, default pattern constants removed in refactor.","solutions":["Pass a non-null pattern with % wildcards as needed","Omit the filter instead of passing null when no pattern exists","Use a sensible default pattern if the prefix is optional"],"exampleFix":"// before\nquery.deploymentNameLike(prefix + \"%\"); // prefix may be null\n// after\nif (prefix != null) {\n    query.deploymentNameLike(prefix + \"%\");\n}","handlingStrategy":"validation","validationCode":"if (pattern == null || pattern.isEmpty()) { throw new IllegalArgumentException(\"pattern required for deploymentNameLike()\"); }","typeGuard":"boolean hasText(String s) { return s != null && !s.trim().isEmpty(); }","tryCatchPattern":"try { q.deploymentNameLike(pattern).list(); } catch (FlowableIllegalArgumentException e) { log.warn(\"pattern null, skipping filter\"); }","preventionTips":["Build LIKE patterns defensively from non-null prefixes only","Validate search inputs from UIs before mapping to query filters","Centralize pattern construction with defaults"],"tags":["flowable","query","null-argument","deployment"],"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:30:33.424Z"}