That's not a NullPointerException but rather a NoSuchElementException usually thrown by a Scanner object, and that's a whole different issue!
--- Update ---
Use more debugging statements to see...
Type: Posts; User: curmudgeon
That's not a NullPointerException but rather a NoSuchElementException usually thrown by a Scanner object, and that's a whole different issue!
--- Update ---
Use more debugging statements to see...
Consider adding some debug lines in your code such as:
System.out.println("partyByIndex: " + partyByIndex);
SorcerersCave foo = caveMap.get(partyByIndex);
...
Being elements in the game is not a reason for them to inherit the class. For inheritance to work, again the child classes need to be more specialized versions of the parent class. There's no way...
You're trying to use a variable that holds a null reference on line 100 of SorcerersCave.java. You will want to check the variables on that line, find out which one is null, and look back into your...