fix NullPointerException in getLeastLoadedNode
@@ -96,8 +96,10 @@ private ActiveNode getLeastLoadedNode(final SortedActiveNodeList nnList,
for(ActiveBlockReport abr : retActiveBRs) {
Tuple entry = usage.get(abr.getNnAddress());
+ if (entry != null) {
entry.counter += 1;
}
+ }
ActiveNode leastLoaded = null;
int count = Integer.MAX_VALUE;
