W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String
cn.bmob.v3.datatype.BmobFile.getFileUrl()' on a null object reference
at com.hzh.qxapp.activity.Recive$7.done(Recive.java:246)
at cn.bmob.v3.http.a.From.Code(PolicyQuery.java:323)
網上找了好多方法,試了都是報這個錯誤。
BmobQuery<Post> query=new BmobQuery<Post>(); //查詢Bmob資料庫中的資訊
query.findObjects(new FindListener<Post>() {
@Override
public void done(List<Post> list, BmobException e) {
try {
for(int i=0;i<list.size();i++)
vpList.add(list.get(i)); //獲取查詢到的資料存入記憶體
Glide.with(Recive.this).load(vpList.get(0).getMobanFile().getFileUrl()).into(moban); //顯示圖片
}catch (Exception ex){
ex.printStackTrace();
}
}
});
我也不知道到底哪兒出了問題,求助!!
uj5u.com熱心網友回復:
111111111111111111uj5u.com熱心網友回復:
2222222222222222222222222222222uj5u.com熱心網友回復:
33333333333333333333333333333333轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/33748.html
標籤:Android
