Bug - Fixed Unexpected error, debug log printed. CHIT: Error Parsing Refresh

Khari

Member
I posted this in the ChIT thread, but I decided this might be right place for it. Here's the debug log:

KoLmafia v16.2 r13592, Mac OS X, Java 1.6.0_65
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Please note: do not post this log in the KoLmafia thread of KoL's
Gameplay-Discussion forum. If you would like the KoLmafia dev team
to look at it, please write a bug report at kolmafia.us. Include
specific information about what you were doing when you made this
and include this log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Timestamp: Fri Jan 24 19:00:06 EST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
at net.sourceforge.kolmafia.moods.MoodTrigger.shouldExecute(MoodTrigger.java:343)
at net.sourceforge.kolmafia.moods.MoodManager.willExecute(MoodManager.java:669)
at net.sourceforge.kolmafia.webui.CharPaneDecorator.getMoodText(CharPaneDecorator.java:845)
at net.sourceforge.kolmafia.webui.CharPaneDecorator.decorateEffects(CharPaneDecorator.java:668)
at net.sourceforge.kolmafia.webui.CharPaneDecorator.decorate(CharPaneDecorator.java:133)
at net.sourceforge.kolmafia.RequestEditorKit.applyPageAdjustments(RequestEditorKit.java:331)
at net.sourceforge.kolmafia.RequestEditorKit.getFeatureRichHTML(RequestEditorKit.java:316)
at net.sourceforge.kolmafia.RequestEditorKit.getFeatureRichHTML(RequestEditorKit.java:230)
at net.sourceforge.kolmafia.request.RelayRequest.formatResponse(RelayRequest.java:345)
at net.sourceforge.kolmafia.request.GenericRequest.run(GenericRequest.java:1428)
at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:2351)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:280)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:243)
at net.sourceforge.kolmafia.textui.RuntimeLibrary.visit_url(RuntimeLibrary.java:1953)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.sourceforge.kolmafia.textui.parsetree.LibraryFunction.execute(LibraryFunction.java:106)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:154)
at net.sourceforge.kolmafia.textui.parsetree.Variable.getValue(Variable.java:88)
at net.sourceforge.kolmafia.textui.parsetree.VariableReference.execute(VariableReference.java:85)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:105)
at net.sourceforge.kolmafia.textui.parsetree.Variable.getValue(Variable.java:88)
at net.sourceforge.kolmafia.textui.parsetree.VariableReference.execute(VariableReference.java:85)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:105)
at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:435)
at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:153)
at net.sourceforge.kolmafia.textui.Interpreter.executeScope(Interpreter.java:401)
at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:325)
at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:318)
at net.sourceforge.kolmafia.KoLmafiaASH.getClientHTML(KoLmafiaASH.java:134)
at net.sourceforge.kolmafia.KoLmafiaASH.getClientHTML(KoLmafiaASH.java:114)
at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:2240)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:280)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:243)
at net.sourceforge.kolmafia.webui.RelayAgent.readServerResponse(RelayAgent.java:552)
at net.sourceforge.kolmafia.webui.RelayAgent.performRelay(RelayAgent.java:157)
at net.sourceforge.kolmafia.webui.RelayAgent.run(RelayAgent.java:130)
 

Khari

Member
Always, ashq if (get_property('lastEncounter').to_monster().item_drops() contains $item[secret tropical island volcano lair map] && item_amount($item[secret tropical island volcano lair map])==0)abort('You were beaten up by the last hitman - aborting')
When I run low on Go Get 'Em, Tiger!, use 5 Ben-Gal™ Balm
When I run low on Seal Clubbing Frenzy, cast 1 Seal Clubbing Frenzy
When I run low on Singer's Faithful Ocelot, cast 1 Singer's Faithful Ocelot
 

xKiv

Active member
I got a similar thing. Switching to mood to apathetic sidesteps the symptom.
Default mood (remove cuncatitis) also works.
Mood with a bunch of "when ..., cast ..." works.
Mood with two "always, ash ..." doesn't work.

Trapping NullPointerException tells me that MoodTrigger:343 has
Code:
if ( Evaluator.checkEffectConstraints( this.effect.getName() ) )
and this.effect == null.

That if is a recent (today (or yesterday, for me), r13587). I think putting a this.effect != null in front of the if will preserve intended functionality.
 
Top