Why is my Dialog Seekbar crashing? Null Pointer Exception
问题 I have a seekbar on a dialog and it is crashing. It says there is a NullPointerException . But I can't find it! Where is my mistake? I commented where the NullPointerException is. dialog_context_mark.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/add_hw_dialog" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:padding="10dp" > <RelativeLayout android:layout_width="wrap_content" android