Strange NullPonterException
Closed this issue · 1 comments
MasterGroosha commented
Hello. I'm getting NPE here:
mDrawer.setTouchMode(MenuDrawer.TOUCH_MODE_FULLSCREEN);
That's all I've got for now:
import net.simonvt.menudrawer.MenuDrawer;
import android.app.Activity;
import android.os.Bundle;
public class Person_FeedList extends Activity{
private MenuDrawer mDrawer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.userfeed);
mDrawer = (MenuDrawer) findViewById(R.id.drawer);
mDrawer.setTouchMode(MenuDrawer.TOUCH_MODE_FULLSCREEN);
}
}
By the way, R.layout.drawer
exists
SimonVT commented
Either the drawer doesn't exist in R.layout.userfeed, or id's are messed up by your build system.