code: private void setRecords(byte[][] data) {
          if (data == null || data.length==0) {
              this.records = EMPTY_DATA;
              return;
          }
  
          this.records = new byte[data.length][];
          for (int i = 0; i < data.length; i++) {
              if (data[i] != null) {
                  this.records[i] = data[i];
              } else {
                  this.records[i] = EMPTY_BYTES;
              }
          }
      }
docs: replaces null with EMPTY_DATA
  
  @param data