Skip to content

Commit

Permalink
AS7-4544 / JBPAPP-8712 mod-cluster: not setting a load provider leads…
Browse files Browse the repository at this point in the history
… to an NPE
  • Loading branch information
ctomc authored and stuartwdouglas committed Apr 19, 2012
1 parent 1f7b154 commit cebe881
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -220,6 +220,13 @@ private LoadBalanceFactorProvider getModClusterLoadProvider(final OperationConte
load = loader;
}
}
if (load == null) {
// Use a default one...
ROOT_LOGGER.useDefaultLoadBalancer();
SimpleLoadBalanceFactorProvider myload = new SimpleLoadBalanceFactorProvider();
myload.setLoadBalanceFactor(1);
load = myload;
}
return load;
}

Expand Down

0 comments on commit cebe881

Please sign in to comment.