android - NullPointerException in SupportAppCompat-v7 Library on API 15 -


a nullpointerexception thrown in supportappcompat library. seems happen devices running on api 15 (icecreamsandwich). api versions 16 22 work without issue.

any ideas on cause crash?

thank time , possible answers!

here's stacktrace:

java.lang.nullpointerexception        @ android.graphics.drawable.layerdrawable$layerstate.(layerdrawable.java:625)        @ android.graphics.drawable.layerdrawable.createconstantstate(layerdrawable.java:107)        @ android.graphics.drawable.layerdrawable.(layerdrawable.java:99)        @ android.graphics.drawable.layerdrawable$layerstate.newdrawable(layerdrawable.java:655)        @ android.content.res.resources.getcacheddrawable(resources.java:2052)        @ android.content.res.resources.loaddrawable(resources.java:1943)        @ android.content.res.resources.getdrawable(resources.java:707)        @ android.support.v4.content.contextcompat.getdrawable(contextcompat.java:321)        @ android.support.v7.internal.widget.tintmanager.getdrawable(tintmanager.java:126)        @ android.support.v7.internal.view.menu.menuitemimpl.geticon(menuitemimpl.java:422)        @ android.support.v7.internal.view.menu.actionmenuitemview.initialize(actionmenuitemview.java:120)        @ android.support.v7.widget.actionmenupresenter.binditemview(actionmenupresenter.java:184)        @ android.support.v7.internal.view.menu.basemenupresenter.getitemview(basemenupresenter.java:182)        @ android.support.v7.widget.actionmenupresenter.getitemview(actionmenupresenter.java:170)        @ android.support.v7.widget.actionmenupresenter.flagactionitems(actionmenupresenter.java:458)        @ android.support.v7.internal.view.menu.menubuilder.flagactionitems(menubuilder.java:1129)        @ android.support.v7.internal.view.menu.basemenupresenter.updatemenuview(basemenupresenter.java:91)        @ android.support.v7.widget.actionmenupresenter.updatemenuview(actionmenupresenter.java:207)        @ android.support.v7.internal.view.menu.menubuilder.dispatchpresenterupdate(menubuilder.java:279)        @ android.support.v7.internal.view.menu.menubuilder.onitemschanged(menubuilder.java:1021)        @ android.support.v7.internal.view.menu.menubuilder.startdispatchingitemschanged(menubuilder.java:1044)        @ android.support.v7.internal.app.toolbaractionbar.populateoptionsmenu(toolbaractionbar.java:463)        @ android.support.v7.internal.app.toolbaractionbar$1.run(toolbaractionbar.java:68)        @ android.os.handler.handlecallback(handler.java:605)        @ android.os.handler.dispatchmessage(handler.java:92)        @ android.os.looper.loop(looper.java:137)        @ android.app.activitythread.main(activitythread.java:4517)        @ java.lang.reflect.method.invokenative(method.java)        @ java.lang.reflect.method.invoke(method.java:511)        @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:993)        @ com.android.internal.os.zygoteinit.main(zygoteinit.java:760)        @ dalvik.system.nativestart.main(nativestart.java) 

after lot of time lost searching answer, have located source of problem.

i use layerdrawable in menuitem , apparently, layerdrawable cannot modified after being set once on api 15. modifying causes crash.

i hope if come across issue.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -