android - ArrayAdapter.createViewFromResource(int, View, ViewGroup, int) line: 355 NullPointerException
<p>I'm setting an ArrayAdapter and I get the following error:</p>

<pre><code> Thread [&lt;1&gt; main] (Suspended (exception NullPointerException)) 
ArrayAdapter.createViewFromResource(int, View, ViewGroup, int) line: 355    
ArrayAdapter.getView(int, View, ViewGroup) line: 323    
ListView(AbsListView).obtainView(int, boolean[]) line: 1294 
ListView.measureHeightOfChildren(int, int, int, int, int) line: 1198    
</code></pre>

<p>My symptomremedyActivity.java looks like:</p>

<pre><code>    setContentView(R.layout.symptomremedy);
    ListView remedyList = (ListView) findViewById(R.id.ListView_SymptomRemedy);
    remedyList.setTextFilterEnabled(true);
    ArrayAdapter&lt;String&gt; adapt = new ArrayAdapter&lt;String&gt;(this, R.layout.menu_item, remedyArray);
    remedyList.setAdapter(adapt);
</code></pre>

<p>and my symptomremedy.xml layout looks like:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
&gt;
&lt;Button
android:id="@+id/Button_BACK"
android:layout_width="wrap_content"
android:layout_height="@dimen/menu_button_height"
android:layout_alignTop="@+id/Button_BACK"
android:layout_below="@+id/ImageView_MenuHeader"
android:textSize="@dimen/menu_button_text_size"
android:text="@string/back"&gt;&lt;/Button&gt;

&lt;ListView
        android:layout_height="wrap_content"
        android:id="@+id/ListView_SymptomRemedy"
        android:layout_width="fill_parent"
        android:background="@color/menu_white"
        android:divider="@drawable/straight_divider"
        android:listSelector="@drawable/textured"
        android:layout_alignParentTop="true"&gt;&lt;/ListView&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>and menu_item.xml layout looks like:</p>

<pre><code>&lt;TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:textSize="@dimen/menu_item_size"
android:text="test string"
android:textColor="@color/menu_black"
android:layout_height="fill_parent"
 /&gt;
</code></pre>

<p>I've done something similar in other Activities with no problems, so I can't figure out why there is a problem here.  All of the fields involved are non-null, i.e. remedyArray, etc.  Anyone have any idea what the problem is?   </p>
