java.net.MalformedURLException: Attempt to invoke virtual method 'int java.lang.String.length()' 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 GitHub by teolemon
, 9 months ago
via GitHub by teolemon
, 11 months ago
via incubator-olio-user by Akara Sucharitakul, 1 year ago
For input string: "null"
via Stack Overflow by Unknown author, 1 year ago
</ArraySubFieldValue>%0A </ArrayFieldEntry>%0A <ArrayFieldEntry>%0A <ArraySubField>[0].Parameter_v alue</ArraySubField>%0A <ArraySubFieldValue>UnknownKeyExcepti on-Retrieving a webURL%0A
java.net.MalformedURLException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
at java.net.URL.(URL.java:528)
at java.net.URL.(URL.java:486)
at java.net.URL.(URL.java:435)
at openfoodfacts.github.scrachx.openfood.views.HistoryScanActivity$FillAdapter.doInBackground(HistoryScanActivity.java:182)
at openfoodfacts.github.scrachx.openfood.views.HistoryScanActivity$FillAdapter.doInBackground(HistoryScanActivity.java:160)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)

Users with the same issue

2 times, 2 months ago
32 times, 2 months ago
78 times, 1 year ago
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
14 more bugmates

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