title: android nullpointer when setting spinner adapter
body: <p>I get this error:</p>
  
  <pre><code>14:03:44.170    322 hnlapp.hairdresser  ERROR   AndroidRuntime  FATAL EXCEPTION: main
  14:03:44.170    322 hnlapp.hairdresser  ERROR   AndroidRuntime  java.lang.NullPointerException
  14:03:44.170    322 hnlapp.hairdresser  ERROR   AndroidRuntime      at hnlapp.hairdresser.Page_Calendar.onOptionsItemSelected(Page_Calendar.java:2824)
  </code></pre>
  
  <p>When attempting to do this:</p>
  
  <pre><code>spinusertype.setAdapter(spinnerArrayAdapter);
  </code></pre>
  
  <p>In this code:</p>
  
  <pre><code>Spinner spinusertype      =       (Spinner)  findViewById(R.id.spinnerUserType);
  String[] userTypes = new String[]{"user","hairdresser","admin"};
                              ArrayAdapter&lt;String&gt; spinnerArrayAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_item, userTypes);
  
  
                              spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
                              spinusertype.setAdapter(spinnerArrayAdapter);
  </code></pre>