Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6690068

REG: serialization proccess throws NPE

XMLWordPrintable

    • b23
    • b23
    • generic
    • generic

      Deserialization of any container throws NPE due to a missed initilization inside readObject() method.
       private void readObject(ObjectInputStream s)throws ClassNotFoundException, IOException{
              ObjectInputStream.GetField f = s.readFields();
              Component [] tmpComponent = (Component[])f.get("component", EMPTY_ARRAY);
      >> component.addAll(Arrays.asList(tmpComponent));

      This is a regression of CR 6616323.

            dav Andrei Dmitriev (Inactive)
            dav Andrei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: