Trouble with findViewById() ... returns NULL when I don't think it should
<p>This is an Android resource file:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;

&lt;LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="fill_parent" 
    android:layout_width="fill_parent"
android:paddingLeft="20dip"
android:paddingRight="20dip" android:orientation="vertical"&gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="left"
        android:id="@+id/pt_name_view"/&gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="left"
    android:id="@+id/pt_dob_view"/&gt;

   &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="left"
    android:id="@+id/pt_mrun_view"/&gt;

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

<p>This is the corresponding class within the Android application:</p>

<pre><code>public class PatientViewActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    setContentView(R.layout.patient_view);

        // ... some irrelevant code ... 

        final TextView nameView = (TextView) findViewById(R.id.pt_name_view);
        nameView.setText(pt.getSurname().toUpperCase() + ", " + pt.getGivenNames() );

        // ... some more irrelevant code ...

}
</code></pre>

<p>This code worked fine until recently.  Now suddenly nameView is NULL when the code is run despite the fact that neither file has been altered.</p>
