fix NPE on empty dex

This commit is contained in:
Kyle Maxwell 2009-02-24 15:35:04 -08:00
parent 2287f08979
commit cd91579c3c
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ unlink(xmlNodePtr xml) {
static void
prune(parsedDexPtr ptr, xmlNodePtr xml, char* err) {
if(xml == NULL) return;
bool optional = ((xmlElementPtr )xml)->attributes != NULL;
if(optional) {
unlink(xml);