Crash When myTBA Disabled #305

Closed
phil-lopreiato opened this Issue Jan 31, 2015 · 0 comments

Projects

None yet

1 participant

@phil-lopreiato
Member

Reported on CD and reproduced.

java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.getToken()' on a null object reference
at com.thebluealliance.androidclient.accounts.AccountHelper.getAuthedTbaMobile(AccountHelper.java:111)
at com.thebluealliance.androidclient.datafeed.DataManager$MyTBA.updateUserFavorites(DataManager.java:514)
at com.thebluealliance.androidclient.background.mytba.PopulateUserFavorites.doInBackground(PopulateUserFavorites.java:32)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
... 3 more
@phil-lopreiato phil-lopreiato added a commit that closed this issue Jan 31, 2015
@phil-lopreiato phil-lopreiato Fixes #305 - crashes when myTBA disabled.
 - Make myTBA fragment properly show dialog when disabled
 - myTBA fragment shows empty Favorites/Subscriptions when disabled
 - Keep profile picture background in nav drawer when disabled (so items
   don't fall under the status bar)
53bd3f3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment