Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dropDownListView setOnBottomListener抛出Null指针 #16

Open
henrybit opened this issue Mar 28, 2015 · 2 comments
Open

dropDownListView setOnBottomListener抛出Null指针 #16

henrybit opened this issue Mar 28, 2015 · 2 comments

Comments

@henrybit
Copy link

代码片段:
dropDownListView = (DropDownListView)findViewById(R.id.list_view);
try {
dropDownListView.setOnBottomListener(new OnClickListener() {
@OverRide
public void onClick(View v) {
new GetDataTask(false).execute();
}
});
} catch (Exception e) {
e.printStackTrace();
}
情况:已debug跟踪过dropDownListView不是null
异常信息:
03-28 20:37:11.200 15372-15372/community.o2o.com.meimo W/System.err﹕ java.lang.NullPointerException
03-28 20:37:11.220 15372-15372/community.o2o.com.meimo W/System.err﹕ at cn.trinea.android.common.view.DropDownListView.setOnBottomListener(DropDownListView.java:351)
03-28 20:37:11.220 15372-15372/community.o2o.com.meimo W/System.err﹕ at community.o2o.com.meimo.view.SearchListActivity.onCreate(SearchListActivity.java:36)
03-28 20:37:11.220 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.app.Activity.performCreate(Activity.java:5453)
03-28 20:37:11.220 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
03-28 20:37:11.220 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2377)
03-28 20:37:11.220 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
03-28 20:37:11.225 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.app.ActivityThread.access$900(ActivityThread.java:175)
03-28 20:37:11.225 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
03-28 20:37:11.225 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:102)
03-28 20:37:11.225 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.os.Looper.loop(Looper.java:146)
03-28 20:37:11.225 15372-15372/community.o2o.com.meimo W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5602)
03-28 20:37:11.225 15372-15372/community.o2o.com.meimo W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
03-28 20:37:11.225 15372-15372/community.o2o.com.meimo W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)
03-28 20:37:11.230 15372-15372/community.o2o.com.meimo W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
03-28 20:37:11.230 15372-15372/community.o2o.com.meimo W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
03-28 20:37:11.230 15372-15372/community.o2o.com.meimo W/System.err﹕ at dalvik.system.NativeStart.main(Native Method)

@henrybit
Copy link
Author

IDE环境:Android studio
gradle:compile 'cn.trinea.android.common:trinea-android-common:4.2.15'

@Trinea
Copy link
Owner

Trinea commented Mar 30, 2015

看下 isOnBottomStyle 是否为空

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants