How to update a Pie Chart in Swing with embedded JavaFx applet - Null Point Exception
===

I'm working on my final programming task for school and wanted to add a piece of little functional eye candy to my java application, in the form of a dynamic Pie Chart in JavaFx. 

Using Netbeans 7.2 rc2, I created a swing/javafx hybrid application from the templates. I extended the JPanelClass to create a shell with which my main application could use to access the FX features. The problem I'm facing, however is that while the initialisation of the chart goes smoothly, when I try to update the blasted thing, it generates a Null Pointer Exception.
Here I believe is the pertinent code:

*Instantiation:*

        StackPane root = new StackPane();
        PieChart athleteChart;
        ObservableList<PieChart.Data> pieChartData =FXCollections.observableArrayList();
        private static JFXPanel fxContainer;
        private int fAthletes=0;
        private int rAthletes=0;

And the method which generated the exception:

    public void setData(int total, int in){
        final  ObservableList<PieChart.Data> pieChartDat=FXCollections.observableArrayList();
        pieChartDat.add(new PieChart.Data("Finished",fAthletes));
        pieChartDat.add(new PieChart.Data("Outstanding",rAthletes));  
        athleteChart.setData(pieChartDat);                
    }



And the exception:

    Exception in thread "main" java.lang.NullPointerException
	     at piechartjpanel.PieChartJFxPanel.setData(PieChartJFxPanel.java:95)
 	     at piechartjpanel.AthleteIOChart.setAthletes(AthleteIOChart.java:62)
	     at piechartjpanel.Test.setter(Test.java:34)
	     at piechartjpanel.Test.main(Test.java:48)


Any help is appreciated :)
Thanks in advance