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 crash #792

Closed
islam2hamy opened this issue Apr 24, 2024 · 1 comment · Fixed by #794
Closed

App crash #792

islam2hamy opened this issue Apr 24, 2024 · 1 comment · Fixed by #794
Labels
Milestone

Comments

@islam2hamy
Copy link

Describe the bug
some times clicking on "solstice / equinox" make app crash

FATAL`` EXCEPTION: main
Process: com.forrestguice.suntimeswidget, PID: 29335
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.forrestguice.suntimeswidget.equinox.EquinoxDataAdapter.setThemeOverride(com.forrestguice.suntimeswidget.themes.SuntimesTheme)' on a null object reference
at com.forrestguice.suntimeswidget.equinox.EquinoxCardDialog.themeViews(EquinoxCardDialog.java:291)
at com.forrestguice.suntimeswidget.equinox.EquinoxCardDialog.themeViews(EquinoxCardDialog.java:317)
at com.forrestguice.suntimeswidget.SuntimesActivity.showEquinoxDialog(SuntimesActivity.java:2430)
at com.forrestguice.suntimeswidget.SuntimesActivity$11.onClick(SuntimesActivity.java:1220)
at com.forrestguice.suntimeswidget.views.ViewUtils$ThrottledClickListener.onClick(ViewUtils.java:168)
at com.forrestguice.suntimeswidget.equinox.EquinoxCardView$1.onClick(EquinoxCardView.java:241)
at com.forrestguice.suntimeswidget.equinox.EquinoxDataAdapter$1.onClick(EquinoxDataAdapter.java:165)
at android.view.View.performClick(View.java:7799)
at android.view.View.performClickInternal(View.java:7776)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:31144)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8727)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

@forrestguice
Copy link
Owner

Thanks for the report.
I'm able to reproduce this when "overriding" the app theme with one of the widget themes.

As a workaround, I think you can avoid the crash by changing appearance to either 'default' or 'contrast' (and avoiding the button that allow selecting the others).

forrestguice added a commit that referenced this issue May 4, 2024
@forrestguice forrestguice modified the milestones: v0.15.5, v0.15.15 Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants