Skip to content
Permalink
Browse files

[CONJ-616] avoiding NPE on connection when using master slave configu…

…ration and no host found

(cherry picked from commit a4fe8a6)
  • Loading branch information...
rusher committed Aug 24, 2018
1 parent 2f1903f commit bbd61e4daedbdf60ee0f826b9eac6d722e7405ef
@@ -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);
}

0 comments on commit bbd61e4

Please sign in to comment.
You can’t perform that action at this time.