{"record":{"id":"fe83e0a913306e75","repo":"elastic/elasticsearch","slug":"missing-must-not-be-null-name","errorCode":null,"errorMessage":"[missing] must not be null: [{name}]","messagePattern":"\\[missing\\] must not be null: \\[(.+?)\\]","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java","lineNumber":169,"sourceCode":"        this.format = formatArg;\n        return (AB) this;\n    }\n\n    /**\n     * Gets the format to use for the output of the aggregation.\n     */\n    public String format() {\n        return format;\n    }\n\n    /**\n     * Sets the value to use when the aggregation finds a missing value in a\n     * document\n     */\n    @SuppressWarnings(\"unchecked\")\n    public AB missingMap(Map<String, Object> missingMapArg) {\n        if (missingMapArg == null) {\n            throw new IllegalArgumentException(\"[missing] must not be null: [\" + name + \"]\");\n        }\n        this.missingMap = missingMapArg;\n        return (AB) this;\n    }\n\n    /**\n     * Gets the value to use when the aggregation finds a missing value in a\n     * document\n     */\n    public Map<String, Object> missingMap() {\n        return missingMap;\n    }\n\n    @Override\n    protected final ArrayValuesSourceAggregatorFactory doBuild(\n        AggregationContext context,\n        AggregatorFactory parent,\n        Builder subFactoriesBuilder","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/elastic/elasticsearch/blob/db6a809a667c081ca1dc7500389d26975573215f/modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java#L151-L187","documentation":"Error \"[missing] must not be null: [{name}]\" thrown in elastic/elasticsearch.","triggerScenarios":"Thrown at modules/aggregations/src/main/java/org/elasticsearch/aggregations/metric/ArrayValuesSourceAggregationBuilder.java:169 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"db6a809a667c081ca1dc7500389d26975573215f","analyzedAt":"2026-08-12T01:39:14.192Z","schemaVersion":2},"datasetVersion":"2026-08-12T08:17:17.861Z"}