lawnchair
lawnchair copied to clipboard
[BUG] [META] Adding widgets causes Lawnchair to crash
Describe the bug
This is a meta issue for all the widget crashing issues relating to this crash message: java.lang.NullPointerException: Attempt to read from field 'android.content.ComponentName android.appwidget.AppWidgetProviderInfo.provider' on a null object reference
. All issues relating to this will be closed and will be linked to this meta issue.
Steps to reproduce
Steps to reproduce the behavior:
- Go to the widgets menu
- Find a widget, and add it to the home screen
- See error
Expected behavior
Lawnchair should not crash, or if there's an internal error, simply discard the attempt to add the widget.
Screenshots
Note: Crash notification didn't appear since I muted notifications
https://user-images.githubusercontent.com/70206496/183589954-cffc0191-a399-4a83-9e48-0e804e497c9f.mp4
Device information
- Device: Multiple Devices
- OS: Any OS that supports widgets and Lawnchair
- App version 11+
Additional context
Here are the things that increases the chance Lawnchair will crash and show this specific error:
- Lawnchair is set as the default launcher
- The widget has a setup screen