Fixing NPE
This commit is contained in:
parent
b0549d8bf9
commit
fc658c3805
|
@ -456,15 +456,22 @@ public class Parser
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
StringBuilder builder = new StringBuilder();
|
StringBuilder builder = new StringBuilder();
|
||||||
builder.append("Parser [");
|
builder.append("Parser[");
|
||||||
builder.append(incomingFramesHandler.getClass().getSimpleName());
|
if (incomingFramesHandler == null)
|
||||||
builder.append(", state=");
|
{
|
||||||
|
builder.append("NO_HANDLER");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
builder.append(incomingFramesHandler.getClass().getSimpleName());
|
||||||
|
}
|
||||||
|
builder.append(",s=");
|
||||||
builder.append(state);
|
builder.append(state);
|
||||||
builder.append(", cursor=");
|
builder.append(",c=");
|
||||||
builder.append(cursor);
|
builder.append(cursor);
|
||||||
builder.append(", payloadLength=");
|
builder.append(",len=");
|
||||||
builder.append(payloadLength);
|
builder.append(payloadLength);
|
||||||
builder.append(", frame=");
|
builder.append(",f=");
|
||||||
builder.append(frame);
|
builder.append(frame);
|
||||||
builder.append("]");
|
builder.append("]");
|
||||||
return builder.toString();
|
return builder.toString();
|
||||||
|
|
Loading…
Reference in New Issue