I'm getting an NullPointerException when i'm trying to get data from my SQLiteDatabase in Android. I'm creating a Cursor from a raw query, and call cur.getString(index), however this results in a NullPointerException: