{"action":"created","issue":{"url":"https://api.github.com/repos/square/okhttp/issues/2381","repository_url":"https://api.github.com/repos/square/okhttp","labels_url":"https://api.github.com/repos/square/okhttp/issues/2381/labels{/name}","comments_url":"https://api.github.com/repos/square/okhttp/issues/2381/comments","events_url":"https://api.github.com/repos/square/okhttp/issues/2381/events","html_url":"https://github.com/square/okhttp/issues/2381","id":138047877,"number":2381,"title":"OKHttp Null Pointer Exception in v2.3.0","user":{"login":"pamoptly","id":5775631,"avatar_url":"https://avatars.githubusercontent.com/u/5775631?v=3","gravatar_id":"","url":"https://api.github.com/users/pamoptly","html_url":"https://github.com/pamoptly","followers_url":"https://api.github.com/users/pamoptly/followers","following_url":"https://api.github.com/users/pamoptly/following{/other_user}","gists_url":"https://api.github.com/users/pamoptly/gists{/gist_id}","starred_url":"https://api.github.com/users/pamoptly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamoptly/subscriptions","organizations_url":"https://api.github.com/users/pamoptly/orgs","repos_url":"https://api.github.com/users/pamoptly/repos","events_url":"https://api.github.com/users/pamoptly/events{/privacy}","received_events_url":"https://api.github.com/users/pamoptly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/square/okhttp/labels/needs%20info","name":"needs info","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-03T01:38:29Z","updated_at":"2016-04-13T03:21:30Z","closed_at":"2016-04-13T03:21:30Z","body":"Optimizely is seeing a crash for clients using our SDK with OKHttp.  We are getting the following crash log specifically for Sony devices on Android 6.  Is this something that you can help with?\r\n\r\nPlease let me know!\r\n\r\n`Fatal Exception: java.lang.RuntimeException: An error occurred while executing doInBackground()\r\n       at android.os.AsyncTask$3.done(AsyncTask.java:309)\r\n       at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)\r\n       at java.util.concurrent.FutureTask.setException(FutureTask.java:223)\r\n       at java.util.concurrent.FutureTask.run(FutureTask.java:242)\r\n       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n       at java.lang.Thread.run(Thread.java:818)\r\nCaused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.security.cert.X509Certificate java.security.cert.TrustAnchor.getTrustedCert()' on a null object reference\r\n       at com.squareup.okhttp.internal.tls.AndroidTrustRootIndex.findByIssuerAndSignature(SourceFile:43)\r\n       at com.squareup.okhttp.internal.tls.CertificateChainCleaner.clean(SourceFile:68)\r\n       at com.squareup.okhttp.internal.io.RealConnection.connectTls(SourceFile:207)\r\n       at com.squareup.okhttp.internal.io.RealConnection.connectSocket(SourceFile:149)\r\n       at com.squareup.okhttp.internal.io.RealConnection.connect(SourceFile:112)\r\n       at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(SourceFile:184)\r\n       at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(SourceFile:126)\r\n       at com.squareup.okhttp.internal.http.StreamAllocation.newStream(SourceFile:95)\r\n       at com.squareup.okhttp.internal.http.HttpEngine.connect(SourceFile:281)\r\n       at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(SourceFile:224)\r\n       at com.squareup.okhttp.Call.getResponse(SourceFile:286)\r\n       at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(SourceFile:243)\r\n       at de.idealo.android.util.OkHttpClientFactory$UserAgentInterceptor.intercept(SourceFile:204)\r\n       at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(SourceFile:232)\r\n       at com.squareup.okhttp.Call.getResponseWithInterceptorChain(SourceFile:205)\r\n       at com.squareup.okhttp.Call.execute(SourceFile:80)\r\n       at com.optimizely.LogAndEvent.OptimizelyTimeSeriesEventsManager$TimeSeriesEventTask.doInBackground$10299ca(SourceFile:281)\r\n       at com.optimizely.LogAndEvent.OptimizelyTimeSeriesEventsManager$TimeSeriesEventTask.doInBackground(SourceFile:243)\r\n       at android.os.AsyncTask$2.call(AsyncTask.java:295)\r\n       at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n       at java.lang.Thread.run(Thread.java:818)`"},"comment":{"url":"https://api.github.com/repos/square/okhttp/issues/comments/209209841","html_url":"https://github.com/square/okhttp/issues/2381#issuecomment-209209841","issue_url":"https://api.github.com/repos/square/okhttp/issues/2381","id":209209841,"user":{"login":"swankjesse","id":133019,"avatar_url":"https://avatars.githubusercontent.com/u/133019?v=3","gravatar_id":"","url":"https://api.github.com/users/swankjesse","html_url":"https://github.com/swankjesse","followers_url":"https://api.github.com/users/swankjesse/followers","following_url":"https://api.github.com/users/swankjesse/following{/other_user}","gists_url":"https://api.github.com/users/swankjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/swankjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swankjesse/subscriptions","organizations_url":"https://api.github.com/users/swankjesse/orgs","repos_url":"https://api.github.com/users/swankjesse/repos","events_url":"https://api.github.com/users/swankjesse/events{/privacy}","received_events_url":"https://api.github.com/users/swankjesse/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T03:21:30Z","updated_at":"2016-04-13T03:21:30Z","body":"No clear action for us to take here."}}