private KeysetHandle.Entry entryByIndex(int i) {
    if (entries.get(i) == null) {
      // This may happen if a keyset without status makes it here; or if a key has a parser
      // registered but parsing fails. We should reject such keysets earlier instead.
      throw new IllegalStateException(
          "Keyset-Entry at position " + i + " has wrong status or key parsing failed");
    }
    return entries.get(i);
  }
Returns an immutable list of key objects for this keyset.

<p>If a status is unparseable or parsing of a key fails, there will be "null" in the
corresponding entry.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java