locationCursor.movetoFirst() is causing nullpointerException
Opened this issue · 1 comments
schezwansoftware commented
locationCursor.movetofirst() in addLocation method is causing null pointer exception..please help me in fixing this error
ismkhanh commented
Have a check like this
if(locationCursor != null && locationCursor.getCount() > 0){ ... locationCursor.movetofirst(); ... }