java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Appcelerator JIRA by Matteo Landi, 1 year ago
Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
via Appcelerator JIRA by Matteo Landi, 1 year ago
Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
via Appcelerator JIRA by grebulon, 1 year ago
Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
via Appcelerator JIRA by grebulon, 1 year ago
Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
via pushwoosh.com by Unknown author, 9 months ago
Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
via GitHub by jdupuis
, 2 years ago
Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.startsWith(java.lang.String)' on a null object reference
at com.android.okhttp.internal.http.StatusLine.(StatusLine.java:24)
at com.android.okhttp.Response$Builder.statusLine(Response.java:419)
at com.android.okhttp.internal.http.JavaApiConverter.createOkResponse(JavaApiConverter.java:116)
at com.android.okhttp.internal.http.ResponseCacheAdapter.get(ResponseCacheAdapter.java:53)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:190)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:373)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:323)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:190)
at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
at java.net.URL.openStream(URL.java:470)
at org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:135)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.