Skip to content Skip to sidebar Skip to footer

Unable To Start Componentinfo Java.lang.nullpointerexception

I am getting a java.lang.NullPointerException error, and am not sure why. I think it could have something to do with how there is no data in my database, but I don't know for certa

Solution 1:

It's the query method that returns null, your cursor is null :

Cursorcursor= getContentResolver().query(uri, projection, null, null, null);//check why your query is returning null
        cursor.moveToFirst(); //cursorisnull

Solution 2:

At line 69, there's problem with your cursor. Make sure values exist.

Post a Comment for "Unable To Start Componentinfo Java.lang.nullpointerexception"