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

App crashing when data is not being fetched for a certain amount of time. #1097

Open
subhav13 opened this issue Jan 4, 2021 · 0 comments
Open

Comments

@subhav13
Copy link

subhav13 commented Jan 4, 2021

Summary:

Sometimes when the progress bar keeps running due to data not being fetched for any reasons it crashes the app with the below details :
--------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.mifos.mobilewallet.mifospay, PID: 2867
java.lang.IllegalStateException: progressBar must not be null
at org.mifos.mobilewallet.mifospay.standinginstruction.ui.SIFragment.showStateView(SIFragment.kt:107)
at org.mifos.mobilewallet.mifospay.standinginstruction.presenter.StandingInstructionsPresenter$getAllSI$1.onError(StandingInstructionsPresenter.kt:46)
at org.mifos.mobilewallet.core.base.UseCaseThreadPoolScheduler$2.run(UseCaseThreadPoolScheduler.java:54)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

Steps to reproduce:

There will be an instance when data is being fetched for a certain amount of time than usual but didn't fetched and results in a crash.

Expected behavior:

Show a correct toast of why data is not being fetched from the servers.

Observed behavior:

App crashing

Device and Android version:

Android emulator: pixel 3A XL, API 28
Physical Device: Samsung Galaxy A10, android 9 version

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