android - Null Pointer exception in layoutInflate makes no sense. why? -


the line of code npe bombs:

viewgroup inflate = (viewgroup) layoutinflater.inflate(r.layout.liker,null); 

inflate's signature (int layoutid, view viewroot)

http://developer.android.com/reference/android/view/layoutinflater.html

use view instead of viewgroup. please check inflate method returns view


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

sql - text truncated using perl DBI insert -

php - Pass object by reference or value -