Avoid NPE on uninitalized SocketFactory fields