Skip to content

Commit

Permalink
Fixed NPE in Message.toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Jan 12, 2012
1 parent 38724bc commit 6f061ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jgroups/Message.java
Expand Up @@ -333,7 +333,7 @@ public String printHeaders() {
}

public int getNumHeaders() {
return headers.size();
return headers != null? headers.size() : 0;
}

/**
Expand Down

0 comments on commit 6f061ad

Please sign in to comment.