用Volley-nullpointerexception

1  public Request(int method, String url, Response.ErrorListener listener) {
2         mMethod = method;
3         mUrl = url;
4         mErrorListener = listener;
5         setRetryPolicy(new DefaultRetryPolicy());
6 
7         mDefaultTrafficStatsTag = TextUtils.isEmpty(url) ? 0: Uri.parse(url).getHost().hashCode();
8    }

 

最后发现是没有加http://

 

http://stackoverflow.com/questions/18523961/android-maven-project-using-volley-nullpointerexception

posted on 2015-05-26 21:09  洛易  阅读(186)  评论(0编辑  收藏  举报