AndroidWebServiceManager icon indicating copy to clipboard operation
AndroidWebServiceManager copied to clipboard

Exception thrown upon setting up trustManager upon initialization

Open onemahon opened this issue 12 years ago • 2 comments

Partial stack trace:

java.lang.ExceptionInInitializerError
...
Caused by: java.lang.NullPointerException
at com.raizlabs.net.webservicemanager.WebServiceManager.setTrustManager(WebServiceManager.java:284)
... 13 more

onemahon avatar Nov 25 '13 23:11 onemahon

@dylanrjames Looks like sslSocketFactory.getSSLContext() is null during setTrustManager() for some reason; I'm going to leave this to you to figure out if something bad is happening or if we just need a null check. Thanks!

onemahon avatar Nov 25 '13 23:11 onemahon

That's bizzarre. If we don't have a context, we can't set the trust settings, so we'd need a more intelligent solution than just a null check here.

dylanrjames avatar Nov 26 '13 15:11 dylanrjames