Bug - Fixed bug report

You have a funky AdventureResult in your inventory with a null name. I can see how that could happen if the ItemDatabase was able to translate from name to itemId but was NOT able to translate that same itemId back into a name. I can't see how that could happen.

I've added some defensive coding:
- Rather than putting in a null name, print a message to the gCLI and leave the original name
- When comparing AdventureResults, do not throw an exception if the name is null.

The first is an attempt to find the root cause of this issue.
The second should prevent KoLmafia from failing to read your inventory.

Revision 8327 contains this. I'd appreciate it if you would download this version and give it a try. Tell me here if it works for you and, especially, if the gCLI contains lines that say "Item database error ...", put them here too. Thanks.
 
Back
Top