I am following this tutorial and getting a NullPointerException at the onCreate method of the DisplayMessageActivity at this block of code:
if (Build.VERSION
I encountered this error when I was trying out the navigation drawer sample app available at the android developer site. It turns out the MainActivity did not extend the ActionBarActivity and thus getActionBar() returns null causing the exception.
MainActivity
ActionBarActivity
getActionBar()