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

REG: serialization proccess throws NPE

    XMLWordPrintable

Details

    • b23
    • b23
    • generic
    • generic

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: