]
Diego Lovison reassigned JGRP-2431:
-----------------------------------
Assignee: Diego Lovison (was: Bela Ban)
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: Diego Lovison
Priority: Optional
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}