Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal bugs in the Activity page #11

Open
IJDesign opened this issue Feb 28, 2018 · 1 comment
Open

Fatal bugs in the Activity page #11

IJDesign opened this issue Feb 28, 2018 · 1 comment

Comments

@IJDesign
Copy link

Hi friends, did anyone know what's the fatal bug in the UserDataActivity? Whenever I open the ACTIVITY page, the app was forced to stop. The log of the error is as follows. Could you give me some hints to debug it? Thanks.

02-28 09:31:00.719 701-915/? V/AudioPolicyEffects: releaseOutputSessionEffects: no output processing was attached to this stream 02-28 09:31:00.760 15414-15414/com.fitbit.sampleandroidoauth2 D/AndroidRuntime: Shutting down VM 02-28 09:31:00.761 15414-15414/com.fitbit.sampleandroidoauth2 E/AndroidRuntime: FATAL EXCEPTION: main Process: com.fitbit.sampleandroidoauth2, PID: 15414 java.lang.ArrayIndexOutOfBoundsException: length=0; index=0 at com.fitbit.sampleandroidoauth2.fragments.WeightLogFragment.bindWeightLogs(WeightLogFragment.java:78) at com.fitbit.sampleandroidoauth2.fragments.WeightLogFragment.onLoadFinished(WeightLogFragment.java:59) at com.fitbit.sampleandroidoauth2.fragments.WeightLogFragment.onLoadFinished(WeightLogFragment.java:27) at android.app.LoaderManagerImpl$LoaderInfo.callOnLoadFinished(LoaderManager.java:489) at android.app.LoaderManagerImpl$LoaderInfo.onLoadComplete(LoaderManager.java:457) at android.content.Loader.deliverResult(Loader.java:144) at android.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:265) at android.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:92) at android.os.AsyncTask.finish(AsyncTask.java:667) at android.os.AsyncTask.-wrap1(AsyncTask.java) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779) 02-28 09:31:00.763 1555-4043/? W/ActivityManager: Force finishing activity com.fitbit.sampleandroidoauth2/.UserDataActivity 02-28 09:31:00.766 1555-4043/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger

@IJDesign
Copy link
Author

IJDesign commented Mar 3, 2018

I found the bug was in the "WeightLogFragment.java." By temporarily disabling the "weight" fragment in the UserDataPagerAdapter.java, I could use and try the other functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant