title: Problem using Cursor to populate a spinner
body: <p>I'm having a problem populating my spinner with data from my SQLite database. Here's the code from my Activity. The Activity crashes with an Unable to start Activity ComponentInfo error where indicated with an arrow.</p>
  
  <pre><code>public class ProjectsActivity extends Activity {
  
  private ReelDbAdapter dbHelper;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.projects_select);
  
      fillProjectSpinner();
  
  }
  
  private void fillProjectSpinner(){
      // initialize cursor to manage data binding to spinner
  
      Cursor projectCursor = null;
      Spinner spnExistingProjects = (Spinner)findViewById(R.id.spnExistingProject);
  
  ---&gt;    projectCursor = dbHelper.getExistingProjects();
  
      //startManagingCursor(projectCursor);
      /*
      //get the list of project names from the database
      String[] from = new String[] {dbHelper.clmProjectName};
      //add a new item to the spinner for each of the rows in the database
      int [] to = new int[]{R.id.txtViewProjectRow};
  
      //initialize a cursor adapter (similar to ArrayAdapter when populating a spinner from a pre-defined array)
      SimpleCursorAdapter projectAdapter = new SimpleCursorAdapter(this, R.layout.view_project_row, projectCursor, from, to);
      //add all the rows to the spinner
      spnExistingProjects.setAdapter(projectAdapter);
      */
  }
  </code></pre>
  
  <p>Here's the code from the getExistingProjects method from my dbAdapter
          public Cursor getExistingProjects() {</p>
  
  <pre><code>    if(mDb == null)
      {
          this.open();
      }
  
      return mDb.query(dbTableProject, new String[] {clmProjectName, clmProjectShootingTitle, clmProjectJobNumber},
              null, null, null, null, null);
  }
  </code></pre>
  
  <p>Any clues on what I might be doing wrong?
  TIA for any help.
  Norm</p>