Why do I get a NullPointerException when calling K2Searchs K2Connection method?
In older versions of K2, the K2Connection method needed to be passed the protocol version to be used. Starting with K2 Version 4.50, this argument has been removed; only the hostname and port are passed to the K2Connection method: Prior to Version 4.50, call K2Connection(host, Integer.parseInt(port), getProtocol()); Starting with Version 4.50, call K2Connection(host, Integer.