Wednesday, January 22, 2014

 Host name may not be null problem


            
java.lang.IllegalArgumentException: Host name may not be null
Address no problem accessing do not know why there is this problem, seek help heroes.

The address is synthetic "htt :/ /" + xxx + "com" is obtained from the above problems xxx server side, then go visit this address will appear above problems, if not dead, then write xxx there. Addresses are the same, just do not know why there is this problem seek help
Reply:
Xxx is how you get that? It should not get to that xxx
Reply:
xxx is a network server through httpget acquired. Obtained before accessing the url output with no problem. But do not know why this exception will be reported
Reply:
Still feel further than to look after the string synthesis, see, and there is no written death subtle differences
Reply:
And death is written exactly the same
Reply:
Set breakpoints, ah, it is estimated that before you put the url request the assignment of the network, resulting in xxx is empty.
Reply:
xxx print it out and have no problem with url
Reply:
A few bars of it ... a closer look
Reply:
htt:? ? p where to go? ?

Determine whether the same two characters do not see with your eyes, and then print directly return value equals the value of the function

No comments:

Post a Comment