![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
Quick question.. really Quick
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?
__________________
Death smiles at us all. All a man can do is smile back. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|