Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Null-pointer in getThemeColor #393

Closed
sk22 opened this issue Jan 30, 2023 · 0 comments
Closed

Null-pointer in getThemeColor #393

sk22 opened this issue Jan 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@sk22
Copy link
Owner

sk22 commented Jan 30, 2023

Exception java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.TypedArray android.content.Context.obtainStyledAttributes(int[])' on a null object reference
  at org.joinmastodon.android.ui.utils.UiUtils.getThemeColor (UiUtils.java:326)
  at org.joinmastodon.android.ui.utils.UiUtils.insetPopupMenuIcon (UiUtils.java:762)
  at org.joinmastodon.android.fragments.HomeTabFragment.lambda$updateSwitcherMenu$5 (HomeTabFragment.java:327)
  at org.joinmastodon.android.fragments.HomeTabFragment.$r8$lambda$elH3ZazXJVkH-s9tdp2Uv0ZE-jo (HomeTabFragment.java)
  at org.joinmastodon.android.fragments.HomeTabFragment$$InternalSyntheticLambda$4$734da36b12697faf7d1a198fc1582c7dd81f04d1b54417ad4743710824796d22$1.accept (HomeTabFragment.java)
  at j$.util.Map$-EL.forEach (Map.java)
  at org.joinmastodon.android.fragments.HomeTabFragment.updateSwitcherMenu (HomeTabFragment.java:324)
  at org.joinmastodon.android.fragments.HomeTabFragment.addItemsToMap (HomeTabFragment.java:300)
  at org.joinmastodon.android.fragments.HomeTabFragment.-$$Nest$maddItemsToMap (HomeTabFragment.java)
  at org.joinmastodon.android.fragments.HomeTabFragment$3.onSuccess (HomeTabFragment.java:203)
  at org.joinmastodon.android.fragments.HomeTabFragment$3.onSuccess (HomeTabFragment.java:200)
  at me.grishka.appkit.api.APIRequest$1.run (APIRequest.java:29)
  at android.os.Handler.handleCallback (Handler.java:938)
  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:8855)
  at java.lang.reflect.Method.invoke (Method.java)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1135)
@sk22 sk22 added the bug Something isn't working label Jan 30, 2023
@sk22 sk22 closed this as completed in 29ad08f Jan 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant