babybuddy / babybuddy-for-android

Android client for the Baby Buddy webapp
MIT License
16 stars 6 forks source link

Illegal state exception #26

Closed MrApplejuice closed 1 year ago

MrApplejuice commented 1 year ago

image

Exception java.lang.IllegalStateException:
  at androidx.fragment.app.Fragment.requireContext (Fragment.java:967)
  at androidx.fragment.app.Fragment.getResources (Fragment.java:1031)
  at androidx.fragment.app.Fragment.getString (Fragment.java:1053)
  at eu.pkgsoftware.babybuddywidgets.BaseFragment.showError (BaseFragment.java:50)
  at eu.pkgsoftware.babybuddywidgets.TimerListViewHolder$StoreActivityCallback$1.error (TimerListViewHolder.java:189)
  at eu.pkgsoftware.babybuddywidgets.networking.BabyBuddyClient$6.error (BabyBuddyClient.java:704)
  at eu.pkgsoftware.babybuddywidgets.networking.BabyBuddyClient$1.lambda$run$0 (BabyBuddyClient.java:572)
  at eu.pkgsoftware.babybuddywidgets.networking.BabyBuddyClient$1$$ExternalSyntheticLambda0.run
  at android.os.Handler.handleCallback (Handler.java:942)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:226)
  at android.os.Looper.loop (Looper.java:313)
  at android.app.ActivityThread.main (ActivityThread.java:8757)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)
MrApplejuice commented 1 year ago

There is a slight chance that https://github.com/MrApplejuice/BabyBuddyAndroid/pull/43 fixed this one as well!

MrApplejuice commented 1 year ago

Closing has having a speculative fix applied!