Bug - Fixed r11981 - NPE with semirare and familiar trainer

Fluxxdog

Active member
Code:
Starting training session...
Round 1: Arrrty vs. Mazel Tov Cocktail...

[1574] Cake-Shaped Arena
Your familiar gains a pound: Arrrty, the 2 lb. Barrrnacle
Arrrty gains 6 experience and a pound.
Round 2: Arrrty vs. Mazel Tov Cocktail...

[1575] Cake-Shaped Arena
Your familiar gains a pound: Arrrty, the 3 lb. Barrrnacle
Arrrty gains 7 experience and a pound.
Round 3: Arrrty vs. Mazel Tov Cocktail...

[1576] Cake-Shaped Arena
Your familiar gains a pound: Arrrty, the 4 lb. Barrrnacle
Arrrty gains 6 experience and a pound.
Round 4: Arrrty vs. Mazel Tov Cocktail...

[1577] Cake-Shaped Arena
Arrrty gains 4 experience.
Round 5: Arrrty vs. Mazel Tov Cocktail...
Semirare window end counter expired.
Unexpected error, debug log printed.

Code:
Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
	at java.util.regex.Matcher.getTextLength(Unknown Source)
	at java.util.regex.Matcher.reset(Unknown Source)
	at java.util.regex.Matcher.<init>(Unknown Source)
	at java.util.regex.Pattern.matcher(Unknown Source)
	at net.sourceforge.kolmafia.CakeArenaManager.earnedXP(CakeArenaManager.java:130)
	at net.sourceforge.kolmafia.swingui.FamiliarTrainingFrame.fightMatch(FamiliarTrainingFrame.java:1498)
	at net.sourceforge.kolmafia.swingui.FamiliarTrainingFrame.fightMatch(FamiliarTrainingFrame.java:1477)
	at net.sourceforge.kolmafia.swingui.FamiliarTrainingFrame.levelFamiliar(FamiliarTrainingFrame.java:959)
	at net.sourceforge.kolmafia.swingui.FamiliarTrainingFrame.levelFamiliar(FamiliarTrainingFrame.java:831)
	at net.sourceforge.kolmafia.swingui.FamiliarTrainingFrame.access$1100(FamiliarTrainingFrame.java:114)
	at net.sourceforge.kolmafia.swingui.FamiliarTrainingFrame$FamiliarTrainingPanel$ButtonPanel$BaseListener.execute(FamiliarTrainingFrame.java:510)
	at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
	at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:342)
My Semirare Window End counter expired during familiar training at the arena.
 
r12020. This is another thing where the proper solution is to make the contract of RequestThread.postRequest always make responseText non-null, but this can't hurt in the interim.
 
Back
Top