Skip to content

Commit

Permalink
[CONJ-616] avoiding NPE on connection when using master slave configu…
Browse files Browse the repository at this point in the history
…ration and no host found
  • Loading branch information
rusher committed Aug 24, 2018
1 parent c16cfc3 commit a4fe8a6
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -220,6 +220,7 @@ public Object invoke(Method method, Object[] args) throws Throwable {
@Override
public boolean versionGreaterOrEqual(int major, int minor, int patch) {
Protocol protocol = (currentProtocol != null) ? currentProtocol : secondaryProtocol;
if (protocol == null) return false;
return protocol.versionGreaterOrEqual(major, minor, patch);
}

Expand Down

0 comments on commit a4fe8a6

Please sign in to comment.