Skip to content

Fix background is set to '@null' will crash the app#7

Open
derlio wants to merge 5 commits intohongyangAndroid:masterfrom
derlio:master
Open

Fix background is set to '@null' will crash the app#7
derlio wants to merge 5 commits intohongyangAndroid:masterfrom
derlio:master

Conversation

@derlio
Copy link

@derlio derlio commented Jan 25, 2016

If any views's background is set to '@null', SkinAttrSupport.getSkinAttrs() will use id(equals 0) to getResourceEntryName, and will throw follow exception:
android.view.InflateException: Binary XML file line #42: Binary XML file line #42: Error inflating class Button,
Caused by: android.content.res.Resources$NotFoundException: Unable to find resource ID #0x0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant