iBotPeaches/Apktool — pull request #71 by rchiossi (2013-02-27 15:19:44+00:00)
Title: Fix for Null Reference while extracting Resources.

I was getting a Null Reference exception on "mConfig.addResource(res);" since for my target apk, that point was reached before mConfig was ever initialized.

Since "res" was already initialized with "mPkg.getOrCreateConfig(new ResConfigFlags())", it seems ok to just initialize mConfig here to that if it's null at this point.

I'm not very familiar with the code, so let me know if thats not the proper way of fixing it.

Thank you.