{"record":{"id":"ac3f0f3a0e60751b","repo":"flowable/flowable-engine","slug":"deploymentname-is-null-ac3f0f","errorCode":null,"errorMessage":"deploymentName is null","messagePattern":"deploymentName 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":72,"sourceCode":"    }\n\n    public EventDeploymentQueryImpl(CommandExecutor commandExecutor) {\n        super(commandExecutor);\n    }\n\n    @Override\n    public EventDeploymentQueryImpl deploymentId(String deploymentId) {\n        if (deploymentId == null) {\n            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\");","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDeploymentQueryImpl.java#L54-L90","documentation":"EventDeploymentQueryImpl.deploymentName sets an exact name filter on the deployment query. It throws FlowableIllegalArgumentException when deploymentName is null because null is not a valid exact-match filter value.","triggerScenarios":"Calling deploymentName(null), usually when the deployment name comes from a descriptor/config value that is absent.","commonSituations":"Deployment name configured via properties/env not set, programmatic deployment that never set a name, refactoring removing a default name constant.","solutions":["Pass the exact deployment name used at deploy time (EventDeploymentBuilder.name(...))","Skip the name filter when unknown to list all deployments","Default the name variable before constructing the query"],"exampleFix":"// before\nquery.deploymentName(deploymentName); // may be null\n// after\nif (deploymentName != null) {\n    query.deploymentName(deploymentName);\n}","handlingStrategy":"validation","validationCode":"if (deploymentName == null || deploymentName.isEmpty()) { throw new IllegalArgumentException(\"deploymentName required for deploymentName()\"); }","typeGuard":"boolean hasText(String s) { return s != null && !s.trim().isEmpty(); }","tryCatchPattern":"try { q.deploymentName(name).list(); } catch (FlowableIllegalArgumentException e) { log.warn(\"name null, listing all deployments\"); }","preventionTips":["Set an explicit name via EventDeploymentBuilder.name(...) at deploy time","Null-check config-sourced names before filtering","Skip optional filters instead of passing null"],"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"}