NOT ABLE TO UNDERSTAND LOGCAT ERROR

Andrew Watson

Total Post:39

Points:273
Posted by  Andrew Watson
 1001  View(s)
Ratings:
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
  1. Mayank Tripathi

    Post:397

    Points:3117
    Re: Not able to understand logCat error

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

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!