title: Application closed after set ImageView on nav drawer
body: <p>I try to set an <code>ImageView</code> and <code>Textview</code> in navigation drawer in code, but it crashes the app instead:</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
          NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
          setSupportActionBar(toolbar);
          DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
          ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
                  this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
          drawer.setDrawerListener(toggle);
          toggle.syncState();
          navigationView.setNavigationItemSelectedListener(this);
          //Image and textview in nav_bar
          View hview = navigationView.inflateHeaderView(R.layout.nav_header_main);
          CircleImageView circleImageView = (CircleImageView) findViewById(R.id.profile_image);
          TextView name = (TextView) findViewById(R.id.name);
          TextView mailid = (TextView) findViewById(R.id.mailid);
          circleImageView.setImageResource(R.mipmap.logo);
          name.setText("HI");
          mailid.setText("Hello");
  
  
          // ATTENTION: This was auto-generated to implement the App Indexing API.
          // See https://g.co/AppIndexing/AndroidStudio for more information.
          client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();
  }
  </code></pre>