java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.database.Cursor.moveToFirst()' on a null object reference [duplicate]
问题 This question already has answers here : What is a NullPointerException, and how do I fix it? (12 answers) Closed 2 years ago . I'm creating an app that list all images in my phone and I'm using media content provider to do it. my problem is I always get this error in my app wherever i run it. 08-28 00:31:27.001 16706-16706/com.chill.leoj.burp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.chill.leoj.burp, PID: 16706 java.lang.RuntimeException: Unable to start activity ComponentInfo{com