antew / RedditInPictures

An image browser for Reddit for Android 2.2+
Apache License 2.0
9 stars 4 forks source link

Login Crashes on Nexus S #147

Closed DavidTPate closed 10 years ago

DavidTPate commented 10 years ago

Attempting to login on the Nexus S Android 2.3.3 (API 10) crashes with the following stack traces.

com.antew.redditinpictures.pro E/ContentValues﹕ Cannot cast value for success to a Boolean: 1
    java.lang.ClassCastException: java.lang.Integer
            at android.content.ContentValues.getAsBoolean(ContentValues.java:413)
            at com.antew.redditinpictures.library.reddit.LoginResponse.processHttpResponse(LoginResponse.java:46)
            at com.antew.redditinpictures.library.reddit.RedditResult.handleResponse(RedditResult.java:18)
            at com.antew.redditinpictures.library.service.RedditService.onRequestComplete(RedditService.java:260)
            at com.antew.redditinpictures.library.service.RESTService.onHandleIntent(RESTService.java:190)
            at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:123)
            at android.os.HandlerThread.run(HandlerThread.java:60)
04-19 17:58:30.578      504-539/com.antew.redditinpictures.pro W/dalvikvm﹕ threadid=19: thread exiting with uncaught exception (group=0x40015560)
04-19 17:58:30.619      504-539/com.antew.redditinpictures.pro E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[RESTService]
    java.lang.NullPointerException
            at com.antew.redditinpictures.library.reddit.LoginResponse.processHttpResponse(LoginResponse.java:46)
            at com.antew.redditinpictures.library.reddit.RedditResult.handleResponse(RedditResult.java:18)
            at com.antew.redditinpictures.library.service.RedditService.onRequestComplete(RedditService.java:260)
            at com.antew.redditinpictures.library.service.RESTService.onHandleIntent(RESTService.java:190)
            at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:123)
            at android.os.HandlerThread.run(HandlerThread.java:60)