java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getErrorStream(HttpURLConnectionImpl.java:154) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getErrorStream(DelegatingHttpsURLConnection.java:98) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getErrorStream(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:278) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference at com.android.okhttp.internal.http.Http1xStream.writeRequestHeaders(Http1xStream.java:124) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getErrorStream(HttpURLConnectionImpl.java:154) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getErrorStream(DelegatingHttpsURLConnection.java:98) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getErrorStream(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:278) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference at com.android.okhttp.internal.http.Http1xStream.writeRequestHeaders(Http1xStream.java:124) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getErrorStream(HttpURLConnectionImpl.java:154) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getErrorStream(DelegatingHttpsURLConnection.java:98) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getErrorStream(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:278) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference at com.android.okhttp.internal.http.Http1xStream.writeRequestHeaders(Http1xStream.java:124) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getErrorStream(HttpURLConnectionImpl.java:154) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getErrorStream(DelegatingHttpsURLConnection.java:98) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getErrorStream(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:278) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference at com.android.okhttp.internal.http.Http1xStream.writeRequestHeaders(Http1xStream.java:124) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference at com.android.okhttp.internal.http.Http1xStream.writeRequestHeaders(Http1xStream.java:124) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getErrorStream(HttpURLConnectionImpl.java:154) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getErrorStream(DelegatingHttpsURLConnection.java:98) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getErrorStream(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:278) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919) java.lang.NullPointerException: Attempt to invoke interface method 'com.android.okhttp.Route com.android.okhttp.Connection.getRoute()' on a null object reference at com.android.okhttp.internal.http.Http1xStream.writeRequestHeaders(Http1xStream.java:124) at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30) at OCRSpace.OCRSpace.PerformOCR(OCRSpace.java:248) at OCRSpace.OCRSpace.OCRFromFile_Exec(OCRSpace.java:131) at OCRSpace.OCRSpace$1.run(OCRSpace.java:99) at java.lang.Thread.run(Thread.java:919)