I get a null pointer exception. Why? I tried and debugged the code...Java says the String array is filled. But when i start the program without debugging mode, Java says nullpointerexception...
BufferedReader quelle = new BufferedReader(new FileReader(file));
String auftrag = quelle.readLine();
String[] daten = auftrag.split(";");
//...
String test;
for(int i = 3;i<=daten.length-1;i+=3)
{
test = daten[i-3] + " " + daten[i-2] + " " + daten[i-1];
g.drawString(daten[i-3] + " " + daten[i-2] + " " + daten[i-1],x,y);
y += 16;
}