public int size() {
    // some lists have only keys and some have only objects, so we need to choose
    // the correct collection to query
    if (hasKeys) {
      return keys.size();
    } else {
      return objects.size();
    }
  }
unprotected access to the objects collection, which may be null
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/ObjectPartList.java