{"record":{"id":"3219da8bc60b57d3","repo":"alibaba/nacos","slug":"agent-request-must-not-be-null","errorCode":null,"errorMessage":"Agent request must not be null","messagePattern":"Agent request must not be null","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentMaintainerServiceImpl.java","lineNumber":330,"sourceCode":"        putIfNotNull(result, \"status\", status);\n        return result;\n    }\n    \n    private void putJsonIfNotNull(Map<String, String> params, String key, Object value) {\n        if (value != null) {\n            params.put(key, JsonUtils.toJson(value));\n        }\n    }\n    \n    private void putIfNotNull(Map<String, String> params, String key, String value) {\n        if (value != null) {\n            params.put(key, value);\n        }\n    }\n    \n    private <T> T requireRequest(T request) {\n        if (request == null) {\n            throw new IllegalArgumentException(\"Agent request must not be null\");\n        }\n        return request;\n    }\n}\n","sourceCodeStart":312,"sourceCodeEnd":335,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentMaintainerServiceImpl.java#L312-L335","documentation":"Error \"Agent request must not be null\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at maintainer-client/src/main/java/com/alibaba/nacos/maintainer/client/ai/AgentMaintainerServiceImpl.java:330 when the library encounters an invalid state.","commonSituations":"Calling the Agent maintainer API with a null request.","solutions":["Provide a non-null value for agent maintainer request null before invoking this operation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b989acdf181d00898f2e8839257bb2b2a3cefe3","analyzedAt":"2026-08-14T07:17:31.569Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}