We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 = (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)
The text was updated successfully, but these errors were encountered:
IDE环境:Android studio gradle:compile 'cn.trinea.android.common:trinea-android-common:4.2.15'
Sorry, something went wrong.
看下 isOnBottomStyle 是否为空
No branches or pull requests
代码片段:
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)
The text was updated successfully, but these errors were encountered: