title: Crash when adding a button to a panel view
body: <p>I have the following code that shows a panel.  It displays a button on the panel but as soon as I assign a Click Handler to it the app crashes!</p>
  
  <p>It crashes on the line .setOnClickListener</p>
  
  <pre><code>Button button =  (Button)findViewById(R.id.buttonclick);
  button.setOnClickListener(new OnClickListener() {
                  @Override
                  public void onClick(View v) {
                    hide();
  
                  }
                });
  </code></pre>
  
  <p>LogCat shows...
  09-22 14:54:09.953: ERROR/Error(7786): java.lang.NullPointerException
  09-22 14:54:09.953: ERROR/Error(7786):     at com.pinkfroot.leefinder.leeFinderMain$PopupPanel.(leeFinderMain.java:598)</p>
  
  <p>Adding a breakpoint further down shows that R.id.buttonclick has an id but button is null.</p>