JoanZapata / android-iconify

Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,...
http://joanzapata.com/android-iconify
Other
3.93k stars 526 forks source link

New IconFontDescriptor without module causes NPE #119

Closed emce closed 9 years ago

emce commented 9 years ago

I've created neccesary classes for custom from from icomoon, but without additional module, just as new classes in my project. Everything working great for modules from this library, but for mine, I'm getting NPE in line paint.setTypeface(Iconify.findTypefaceOf(icon).getTypeface(context)); - so it looks like library can't find typeface by icon char. I don't know what more information is needed.

emce commented 9 years ago

Ok - I did a little of debugging, and it occurs, that in spite of my Application class call init (Iconify.with()...) for Iconify, it's not initialized. After put this in my activity class - it worked.