blstream/UrbanGame — pull request #116 by herbatnik (2013-06-20 17:20:15+00:00)
Title: [Android] crash bug fix

This crash fix:
06-20 17:17:56.732: E/AndroidRuntime(11313): FATAL EXCEPTION: AsyncTask #5
06-20 17:17:56.732: E/AndroidRuntime(11313): java.lang.RuntimeException: An error occured while executing doInBackground()
06-20 17:17:56.732: E/AndroidRuntime(11313):	at android.os.AsyncTask$3.done(AsyncTask.java:200)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.lang.Thread.run(Thread.java:1027)
06-20 17:17:56.732: E/AndroidRuntime(11313): Caused by: java.lang.IllegalStateException: get field slot from row 0 col 0 failed
06-20 17:17:56.732: E/AndroidRuntime(11313):	at net.sqlcipher.CursorWindow.getLong_native(Native Method)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at net.sqlcipher.CursorWindow.getLong(CursorWindow.java:381)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at net.sqlcipher.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:110)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at android.database.CursorWrapper.getLong(CursorWrapper.java:132)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at com.blstream.urbangame.database.Database.gameShortInfoFromCursor(Database.java:510)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at com.blstream.urbangame.database.Database.getAllGamesShortInfoParameterized(Database.java:310)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at com.blstream.urbangame.database.Database.getAllGamesShortInfo(Database.java:323)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at com.blstream.urbangame.notifications.NotificationServer.runNoWebServerQuery(NotificationServer.java:383)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at com.blstream.urbangame.notifications.NotificationServer.access$1(NotificationServer.java:378)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at com.blstream.urbangame.notifications.NotificationServer$AsyncNotificationQuery.doInBackground(NotificationServer.java:350)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at com.blstream.urbangame.notifications.NotificationServer$AsyncNotificationQuery.doInBackground(NotificationServer.java:1)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at android.os.AsyncTask$2.call(AsyncTask.java:185)
06-20 17:17:56.732: E/AndroidRuntime(11313):	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
06-20 17:17:56.732: E/AndroidRuntime(11313):	... 4 more