{"record":{"id":"1f0fed5093e5ee85","repo":"apache/hadoop","slug":"key-may-not-be-null-1f0fed","errorCode":null,"errorMessage":"Key[] may not be null","messagePattern":"Key\\[\\] may not be null","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java","lineNumber":187,"sourceCode":"   * Adds a collection of keys to <i>this</i> filter.\n   * @param keys The collection of keys.\n   */\n  public void add(Collection<Key> keys){\n    if(keys == null) {\n      throw new IllegalArgumentException(\"Collection<Key> may not be null\");\n    }\n    for(Key key: keys) {\n      add(key);\n    }\n  }//end add()\n\n  /**\n   * Adds an array of keys to <i>this</i> filter.\n   * @param keys The array of keys.\n   */\n  public void add(Key[] keys){\n    if(keys == null) {\n      throw new IllegalArgumentException(\"Key[] may not be null\");\n    }\n    for(int i = 0; i < keys.length; i++) {\n      add(keys[i]);\n    }\n  }//end add()\n  \n  // Writable interface\n  \n  @Override\n  public void write(DataOutput out) throws IOException {\n    out.writeInt(VERSION);\n    out.writeInt(this.nbHash);\n    out.writeByte(this.hashType);\n    out.writeInt(this.vectorSize);\n  }\n\n  @Override\n  public void readFields(DataInput in) throws IOException {","sourceCodeStart":169,"sourceCodeEnd":205,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java#L169-L205","documentation":"Error \"Key[] may not be null\" thrown in apache/hadoop.","triggerScenarios":"Thrown at hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/bloom/Filter.java:187 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The Key[] argument is null. Pass a non-null array of keys."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}