Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2431

Fix NPE when debugging Message::readHeader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Optional Optional
    • 4.1.9
    • None
    • None

      When debugging the following method a NPE will throw if you try to evaluate the "hdr" expression.

          protected static Header readHeader(DataInput in) throws IOException, ClassNotFoundException {
              short magic_number=in.readShort();
              Header hdr=ClassConfigurator.create(magic_number);
              hdr.readFrom(in);
              return hdr;
          }
      

              dlovison@redhat.com Diego Lovison
              dlovison@redhat.com Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: