title: Null pointer exception on setAdapter()
body: <p>I'm attempting to create a custom ListView adapter (roughly based on <a href="http://publicstaticdroidmain.com/2011/12/building-a-custom-multi-line-listview-in-android/" rel="nofollow">this tutorial</a>, but the example is simple enough I doubt you need to look at it).</p>
  
  <p><strong>NewsEntriesAdapter.java</strong></p>
  
  <pre><code>public class NewsEntriesAdapter extends BaseAdapter {
      private static ArrayList&lt;NewsEntries&gt; newsEntriesArrayList;
  
      private final LayoutInflater mInflater;
  
      public NewsEntriesAdapter(Context context, ArrayList&lt;NewsEntries&gt; entries) {
          newsEntriesArrayList = entries;
          mInflater = LayoutInflater.from(context);
      }
  
      @Override
      public int getCount() {
          return newsEntriesArrayList.size();
      }
  
      @Override
      public Object getItem(int position) {
          return newsEntriesArrayList.get(position);
      }
  
      @Override
      public long getItemId(int position) {
          return position;
      }
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
          ViewHolder holder;
  
          if (convertView == null) {
              convertView = mInflater.inflate(R.layout.assignment_list_row_view,
                      null);
              holder = new ViewHolder();
              holder.txtName = (TextView) convertView.findViewById(R.id.name);
              holder.txtCityState = (TextView) convertView
                      .findViewById(R.id.cityState);
              holder.txtPhone = (TextView) convertView.findViewById(R.id.phone);
  
              convertView.setTag(holder);
          } else {
              holder = (ViewHolder) convertView.getTag();
          }
  
          holder.txtName.setText(newsEntriesArrayList.get(position).getName());
          holder.txtCityState.setText(newsEntriesArrayList.get(position)
                  .getCityState());
          holder.txtPhone.setText(newsEntriesArrayList.get(position).getPhone());
  
          return convertView;
      }
  
      static class ViewHolder {
          TextView txtName;
          TextView txtCityState;
          TextView txtPhone;
      }
  
  }
  </code></pre>
  
  <p><strong>MainActivity.java (onCreate method)</strong></p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      ArrayList&lt;NewsEntries&gt; results = new ArrayList&lt;NewsEntries&gt;();
  
      // I left the NewsEntries class out of this question; it's just a POJO with some get and set methods for Name, CityState, and Phone
      NewsEntries sr = new NewsEntries();
      sr.setName("Justin Schultz");
      sr.setCityState("San Francisco, CA");
      sr.setPhone("415-555-1234");
      results.add(sr);
  
      final ListView lv = (ListView) findViewById(R.id.list);
  
      System.out.println(results.get(0).getName());
  
      lv.setAdapter(new NewsEntriesAdapter(this, results));
  }
  </code></pre>
  
  <p>However, the <code>lv.setAdapter</code> line right above this crashes the app with a null pointer exception.</p>
  
  <p>Any ideas?</p>