Bug Maximizer not working

Marge

New member
In preparation for casting summons, I like to maximize MP. The command was not working from the chatpane (/cli maximize mp) nor from the Modifier Maximizer box, and I got the error message. Here is what the debug report said:

KoLmafia v18.11 r19091, Mac OS X, Java 1.8.0_51
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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: Tue Feb 05 11:27:25 EST 2019
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:1025)
at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:201)
at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:272)
at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ConfirmedListener.execute(GenericPanel.java:626)
at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
at net.sourceforge.kolmafia.RequestThread$SequencedRunnable.run(RequestThread.java:418)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


Thank you.
 

Darzil

Developer
So looking at the code, lines 1024/1025 are:
Code:
int creatable = CreateItemRequest.getInstance( ItemPool.EVIL_SCROLL )
						.getQuantityPossible();

So for some reason CreateItemRequest.getInstance( ItemPool.EVIL_SCROLL ) returned null ?

I can only think that somehow the ConcoctionDatabase was incorrect for these. If you restart Mafia (not just log out and log in again) does the issue persist ?
 
Last edited:
Top