{"record":{"id":"0180fea758aec92e","repo":"flowable/flowable-engine","slug":"deploymenttenantidlike-is-null-0180fe","errorCode":null,"errorMessage":"deploymentTenantIdLike is null","messagePattern":"deploymentTenantIdLike 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":141,"sourceCode":"    @Override\n    public EventDeploymentQueryImpl deploymentWithoutTenantId() {\n        this.withoutTenantId = true;\n        return this;\n    }\n\n    @Override\n    public EventDeploymentQueryImpl deploymentTenantId(String tenantId) {\n        if (tenantId == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentTenantId is null\");\n        }\n        this.tenantId = tenantId;\n        return this;\n    }\n\n    @Override\n    public EventDeploymentQueryImpl deploymentTenantIdLike(String tenantIdLike) {\n        if (tenantIdLike == null) {\n            throw new FlowableIllegalArgumentException(\"deploymentTenantIdLike is null\");\n        }\n        this.tenantIdLike = tenantIdLike;\n        return this;\n    }\n\n    @Override\n    public EventDeploymentQueryImpl eventDefinitionKey(String key) {\n        if (key == null) {\n            throw new FlowableIllegalArgumentException(\"key is null\");\n        }\n        this.eventDefinitionKey = key;\n        return this;\n    }\n\n    @Override\n    public EventDeploymentQueryImpl eventDefinitionKeyLike(String keyLike) {\n        if (keyLike == null) {\n            throw new FlowableIllegalArgumentException(\"keyLike is null\");","sourceCodeStart":123,"sourceCodeEnd":159,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDeploymentQueryImpl.java#L123-L159","documentation":"EventDeploymentQueryImpl.deploymentTenantIdLike() throws FlowableIllegalArgumentException when the tenantIdLike pattern is null. Like-queries on the tenant column need a non-null pattern for the SQL LIKE clause. Empty strings are accepted; only null is rejected.","triggerScenarios":"Calling eventDeploymentQuery().deploymentTenantIdLike(null), usually when the pattern comes from an optional search input or unresolved configuration value.","commonSituations":"Search UIs that pass the raw (absent) tenant filter; integration code where a Spring property like ${tenant.prefix} did not resolve and remained null.","solutions":["Only call deploymentTenantIdLike when the pattern is non-null.","Provide a default pattern (e.g. tenantPrefix + \"%\") when the filter should still be applied.","Fix the configuration/placeholder resolution that produced null."],"exampleFix":"// before\nquery.deploymentTenantIdLike(request.getTenantLike());\n// after\nString tenantLike = request.getTenantLike();\nif (tenantLike != null) {\n    query.deploymentTenantIdLike(tenantLike);\n}","handlingStrategy":"validation","validationCode":"if (tenantIdLike != null) { query.deploymentTenantIdLike(tenantIdLike); }","typeGuard":"boolean hasTenantPattern(String s) { return s != null; }","tryCatchPattern":"try {\n    query.deploymentTenantIdLike(tenantLike);\n} catch (FlowableIllegalArgumentException e) {\n    log.warn(\"Null tenant like-pattern ignored\", e);\n}","preventionTips":["Never forward raw optional parameters into like-filters","Check placeholder resolution in configuration","Use helper builders that ignore null filters"],"tags":["null-argument","query-builder","multi-tenancy"],"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"}