I'm using the following code:
System.out.println ("position: " + fileData [i].indexOf ("<GPieceSize>"));
I'm getting an error saying that there's a null pointerException. How is this possible?
if the value isn't found within the string then a (-1) should be printed. Does anyone understand why there's a null pointer exception?