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

java.lang.NullPointerException (BotaotecaWidgetProvider.java:66) #9

Open
jonasfa opened this issue Jan 17, 2011 · 1 comment
Open
Labels

Comments

@jonasfa
Copy link
Contributor

jonasfa commented Jan 17, 2011

Sempre que inicio meu emulador (android 2.3), recebo a notificação de que a aplicação travou.
Atualmente esse emulador não tem widgets do Botãoteca, mas já teve antes.

I/ActivityManager( 61): Start proc br.com.jera.botaoteca for broadcast br.com.jera.botaoteca/.widget.BotaotecaWidgetProvider: pid=280 uid=10042 gids={1015}
D/AndroidRuntime( 280): Shutting down VM
W/dalvikvm( 280): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 280): FATAL EXCEPTION: main
E/AndroidRuntime( 280): java.lang.RuntimeException: Unable to start receiver br.com.jera.botaoteca.widget.BotaotecaWidgetProvider: java.lang.NullPointerException: enumType == null || name == null
E/AndroidRuntime( 280): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1780)
E/AndroidRuntime( 280): at android.app.ActivityThread.access$2400(ActivityThread.java:117)
E/AndroidRuntime( 280): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:978)
E/AndroidRuntime( 280): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 280): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 280): at android.app.ActivityThread.main(ActivityThread.java:3647)
E/AndroidRuntime( 280): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 280): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 280): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 280): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 280): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 280): Caused by: java.lang.NullPointerException: enumType == null || name == null
E/AndroidRuntime( 280): at java.lang.Enum.valueOf(Enum.java:166)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.ButtonColor.valueOf(ButtonColor.java:1)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.updateWidget(BotaotecaWidgetProvider.java:73)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.onEnabled(BotaotecaWidgetProvider.java:85)
E/AndroidRuntime( 280): at android.appwidget.AppWidgetProvider.onReceive(AppWidgetProvider.java:73)
E/AndroidRuntime( 280): at br.com.jera.botaoteca.widget.BotaotecaWidgetProvider.onReceive(BotaotecaWidgetProvider.java:66)
E/AndroidRuntime( 280): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1769)
E/AndroidRuntime( 280): ... 10 more

@beirigo
Copy link
Contributor

beirigo commented Mar 29, 2011

Suspeito que a solução para esse problema seja remover as prefs de um widget quando o mesmo for removido.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants