title: 'Field never assigned error" message meaning
body: <p>What does the error message 'field never assigned' mean and how can you assign the field. I wanted to know for the sake of learning so I can learn what it means and how to assign so I won't get this error again. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>private NavigationDrawerFragment mNavigationDrawerFragment;
  
  
   @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          if (!mNavigationDrawerFragment.isDrawerOpen()) {
              // Only show items in the action bar relevant to this screen
              // if the drawer is not showing. Otherwise, let the drawer
              // decide what to show in the action bar.
              getMenuInflater().inflate(R.menu.main, menu);
              restoreActionBar();
              return true;</code></pre>
  </div>
  </div>
  
  How would I assign in this one for example</p>