title: SimpleCursorAdapter constructor throws NullpointerException
body: <pre><code>public class EntryListActivity extends ListActivity 
  implements LoaderCallbacks&lt;Cursor&gt;{
      private SimpleCursorAdapter curAdpt;
  
      @Override 
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          setContentView(R.layout.activity_entry_list);
  
          //ListView lview= (ListView) this.findViewById(android.R.id.list);
  
          //this.getLoaderManager().initLoader(0,  null,  (android.app.LoaderManager.LoaderCallbacks&lt;Cursor&gt;) this);
  
          // For the cursor adapter, specify which  columns go into which views
          String[] fromColumns = {DiaryContract.EntryContract.COL_NAME_CONTENT};
          int[] toViews = {R.id.entry_content}; // The TextView in simple_list_item_1
  
          Uri entriesUri= Uri.parse("content://"+DiaryProviderContract.AUTHORITY + "/" + DiaryProviderContract.Entry.BASE_PATH) ;
         Cursor entryCursor= this.getContentResolver().query(entriesUri, null,  null, null, null);
  
         System.out.println("cursor" + entryCursor.getColumnCount());
  
         this.curAdpt = new SimpleCursorAdapter(this, android.R.layout.activity_list_item, entryCursor, fromColumns, toViews, (Integer) null);
  
          //lview.setAdapter(this.curAdpt);
  
          this.setListAdapter(this.curAdpt);
  
      }
  
      @Override
      public boolean onCreateOptionsMenu(Menu menu) {
          // Inflate the menu; this adds items to the action bar if it is present.
          getMenuInflater().inflate(R.menu.entry_list, menu);
          return true;
      }
  
      @Override
      public Loader&lt;Cursor&gt; onCreateLoader(int arg0, Bundle arg1) {
          // TODO Auto-generated method stub
          Uri entriesUri= Uri.parse("content://com.metizta.diary.provider/entries");
  
          return new CursorLoader(this, entriesUri,
                  null, null, null, null);
  
      }
  @Override
      public Loader&lt;Cursor&gt; onCreateLoader(int arg0, Bundle arg1) {
          // TODO Auto-generated method stub
          Uri entriesUri= Uri.parse("content://com.metizta.diary.provider/entries");
  
          return new CursorLoader(this, entriesUri,
                  null, null, null, null);
  
      }
  
      @Override
      public void onLoadFinished(Loader&lt;Cursor&gt; arg0, Cursor arg1) {
          // TODO Auto-generated method stub
  
          this.curAdpt.swapCursor(arg1);
  
  
      }
  
      @Override
      public void onLoaderReset(Loader&lt;Cursor&gt; arg0) {
          // TODO Auto-generated method stub
          this.curAdpt.swapCursor(null);
  
      }
  }
  </code></pre>
  
  <p>It throws nullPointerException in line  </p>
  
  <blockquote>
    <p>this.curAdpt = new SimpleCursorAdapter(this,
    android.R.layout.activity_list_item, entryCursor, fromColumns,
    toViews, (Integer) null);</p>
  </blockquote>