Permalink
Browse files

fix NPE

  • Loading branch information...
tjake committed Feb 11, 2011
1 parent 8deabb4 commit c673b2e7ec42e1dcb2257b6e5592ea6d4d043327
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lucandra/cluster/CassandraIndexManager.java
@@ -607,7 +607,7 @@ public int compare(IdInfo o1, IdInfo o2)
String winningTokenStr;
try
{
- winningTokenStr = ByteBufferUtil.string(winningToken);
+ winningTokenStr = winningToken == null ? "" : ByteBufferUtil.string(winningToken);
}
catch (CharacterCodingException e)
{

0 comments on commit c673b2e

Please sign in to comment.