Home > DeveloperSection > Forums > Not able to understand logCat error
Andrew Watson
Andrew Watson

Total Post:39

Posted on    January-11-2016 11:03 PM

 Android Android 

 1 Reply(s)
 958  View(s)
Rate this:
I have checked this code many times, but the code crashes with some unhandled  exception  every time i add the item to the cart it shows in the logcat. Please help to recognize the my error
 01-11 18:07:02.271: E/Volley(29037): [15630] NetworkDispatcher.run:Unhandled exception java.lang.RuntimeException: Bad URL null
 01-11 18:07:02.271: E/Volley(29037): java.lang.RuntimeException: Bad URL null
 01-11 18:07:02.271: E/Volley(29037):at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:127)
 01-11 18:07:02.271: E/Volley(29037):at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:110)
 01-11 18:07:02.271: E/Volley(29037): Caused by: java.net.MalformedURLException: Protocol not found: null
 01-11 18:07:02.271: E/Volley(29037):at java.net.URL.<init>(URL.java:176)
 01-11 18:07:02.271: E/Volley(29037):at java.net.URL.<init>(URL.java:125)
 01-11 18:07:02.271: E/Volley(29037):at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:101)
 01-11 18:07:02.271: E/Volley(29037):at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:93)
 01-11 18:07:02.271: E/Volley(29037):... 1 more

Mayank Tripathi
Mayank Tripathi

Total Post:397

Posted on    January-11-2016 11:26 PM

Your URL is coming as null and you are not handling exception also.

run:Unhandled exception java.lang.RuntimeException: Bad URL null

Don't want to miss updates? Please click the below button!

Follow MindStick