{"record":{"id":"a434215b6ca37177","repo":"alibaba/nacos","slug":"endpoint-must-not-be-null-a43421","errorCode":null,"errorMessage":"Endpoint must not be null","messagePattern":"Endpoint must not be null","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"api/src/main/java/com/alibaba/nacos/api/ai/utils/EndpointNaturalKey.java","lineNumber":69,"sourceCode":"        this.normalizedHost = normalizedHost;\n        this.effectivePort = effectivePort;\n        this.transport = transport;\n    }\n    \n    /**\n     * Build a natural key from an Endpoint.\n     *\n     * @param namespaceId effective namespace\n     * @param agentName Agent name\n     * @param protocol protocol token\n     * @param endpoint Endpoint value\n     * @return canonical natural key\n     * @throws IllegalArgumentException when any key field is invalid\n     */\n    public static EndpointNaturalKey of(String namespaceId, String agentName, String protocol,\n        Endpoint endpoint) {\n        if (endpoint == null) {\n            throw new IllegalArgumentException(\"Endpoint must not be null\");\n        }\n        return of(namespaceId, agentName, protocol, endpoint.getUri(), endpoint.getTransport());\n    }\n    \n    /**\n     * Build a natural key from the Endpoint fields that participate in identity.\n     *\n     * @param namespaceId effective namespace\n     * @param agentName Agent name\n     * @param protocol protocol token\n     * @param uri Endpoint URI\n     * @param transport transport token\n     * @return canonical natural key\n     * @throws IllegalArgumentException when any key field is invalid\n     */\n    public static EndpointNaturalKey of(String namespaceId, String agentName, String protocol,\n        String uri,\n        String transport) {","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/alibaba/nacos/blob/9b989acdf181d00898f2e8839257bb2b2a3cefe3/api/src/main/java/com/alibaba/nacos/api/ai/utils/EndpointNaturalKey.java#L51-L87","documentation":"Error \"Endpoint must not be null\" thrown in alibaba/nacos.","triggerScenarios":"Thrown at api/src/main/java/com/alibaba/nacos/api/ai/utils/EndpointNaturalKey.java:69 when the library encounters an invalid state.","commonSituations":"Computing a natural key for a null Endpoint.","solutions":["Provide a non-null value for endpoint natural key 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"}