martinberger/Group-3 — Issue #16: POIDatabase NullPointerException
Author: dstanoev
Created: 2011-11-27 17:59:06+00:00
State: open
Labels: android, high

I tried integrating the database code but I got a NullPointerException.

I think this is because you've not initialized SQLiteDatabase db in the proper place. When I call getAllPOIs and the code gets to Cursor cur = db.query(); ... db is null at this point and throws a NullPointerException.

This is most likely because it is not initialized properly.