[jboss-jira] [JBoss JIRA] (JGRP-2431) Fix NPE when debugging Message::readHeader

Diego Lovison (Jira) issues at jboss.org
Wed Jan 8 10:00:41 EST 2020


Diego Lovison created JGRP-2431:
-----------------------------------

             Summary: Fix NPE when debugging Message::readHeader
                 Key: JGRP-2431
                 URL: https://issues.redhat.com/browse/JGRP-2431
             Project: JGroups
          Issue Type: Bug
            Reporter: Diego Lovison
            Assignee: Bela Ban


When debugging the following method a NPE will throw if you try to evaluate the "hdr" expression.
{code:java}
    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;
    }
{code}




--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list