title: Null pointer exception is thrown even though identical handler works normally
body: <p>I am very new to java. I'm trying to build a simple application in JavaFX, but something very odd is happening: I have two nearly identical handlers, <code>handleButtonAction</code> and <code>handleButtonAction2</code> and two labels, <code>clicked</code> and <code>selected</code>. I have one button. When I set this button to use <code>handleButtonAction</code> everything works. When I switch to <code>handleButtonAction2</code> I get a null pointer exception. I really can't understand this as to my eyes both handlers do virtually the same thing.</p>
  
  <pre><code>public class FXMLDocumentController implements Initializable {
  
      @FXML
      private Label clicked;
      private Label selected;
  
      @FXML
      private void handleButtonAction(ActionEvent event) {
          System.out.println("Text1");
          clicked.setText("Text2");
      }
  
      @FXML
      private void handleButtonAction2(ActionEvent event) {
          System.out.println("More Text1");
          selected.setText("More Text2");
      }
  
  
      @Override
      public void initialize(URL url, ResourceBundle rb) {
          // TODO
      }    
  
  }
  </code></pre>
  
  <p>Anyone can shed some light on what's going on?</p>