Caused By: Java.lang.illegalargumentexception: Host Name May Not Be Null
I am using four Strings in my code. The first String contains 'http://', the second String contains user host URL (entered by user), the third contains '/musics/a.mp3' and the four
Solution 1:
If the host part of the URL comes from the user, you must validate it before using it to construct a URL.
Don't call new JSONAsyncTask().execute(fourth);
if second
is null.
Post a Comment for "Caused By: Java.lang.illegalargumentexception: Host Name May Not Be Null"