Incongruous Error Message

Using Game Piece Inventory Window to find stuff on boards/maps. The function uses 2 values previously entered by the user that are saved as GPs. While the correct data is displayed in the popup window, there is also an error message in the chat zone. So now I’m confused - an error message on something that also seems to be working OK.

Looking forward to answer(s).

Extract from error file is:

2026-04-21 16:37:34,430 [15912-SwingWorker-pool-2-thread-4] INFO VASSAL.launch.AbstractLaunchAction - Loading module file C:\Vassal Modules\WiF CE Official Combo Ver 2_0_j.vmod
2026-04-21 16:37:44,140 [15912-SwingWorker-pool-2-thread-4] INFO VASSAL.launch.TilingHandler - No images to tile.
2026-04-21 16:37:44,141 [15912-SwingWorker-pool-2-thread-4] INFO VASSAL.launch.AbstractLaunchAction - Loading module WiF CE Official Combo
2026-04-21 16:37:44,142 [15912-SwingWorker-pool-2-thread-4] INFO VASSAL.launch.AbstractLaunchAction - JVM maximum heap size: 9216 MB
2026-04-21 16:37:44,143 [15912-SwingWorker-pool-2-thread-4] INFO VASSAL.tools.io.ProcessLauncher - launching C:\Program Files\VASSAL-3.7.21\jre\bin\java -Xms9216M -Xmx9216M -Duser.home=C:\Users\p4l4d -Duser.dir=C:\Program Files\VASSAL-3.7.21 -cp lib\Vengine.jar VASSAL.launch.Editor --edit – C:\Vassal Modules\WiF CE Official Combo Ver 2_0_j.vmod
2026-04-21 16:37:44,643 [2540-main] INFO VASSAL.launch.StartUp - Starting
2026-04-21 16:37:44,650 [2540-main] INFO VASSAL.launch.StartUp - OS Windows 11 10.0 amd64
2026-04-21 16:37:44,650 [2540-main] INFO VASSAL.launch.StartUp - Java version 25.0.2
2026-04-21 16:37:44,650 [2540-main] INFO VASSAL.launch.StartUp - Java home C:\Program Files\VASSAL-3.7.21\jre
2026-04-21 16:37:44,650 [2540-main] INFO VASSAL.launch.StartUp - VASSAL version 3.7.21
2026-04-21 16:37:44,651 [2540-main] INFO VASSAL.launch.Launcher - Editor
2026-04-21 16:37:49,410 [2540-AWT-EventQueue-0] INFO VASSAL.build.GameModule - WiF CE Official Combo version 2.0.j
2026-04-21 16:37:55,510 [2540-AWT-EventQueue-0] INFO VASSAL.build.module.GameState - Loading save game C:\Users\p4l4d\Dropbox\TheGame\testing.vsav, created with module version 2.0.j
2026-04-21 16:39:19,512 [2540-AWT-EventQueue-0] WARN VASSAL.tools.ErrorDialog - Source: Expression={BasicName.contains($locateaunit$)&&BasicName.substring(0,2)==$locatemajorp$}, Error=e: inline evaluation of: _xyzzy=_plugh("");'' : Method Invocation BasicName.substring Error: Expression evaluation error. 2026-04-21 16:40:50,855 [2540-AWT-EventQueue-0] WARN VASSAL.tools.ErrorDialog - Source: Expression={BasicName.contains($locateaunit$)&&$locatemajorp$==BasicName.substring(0,2)}, Error=e: inline evaluation of: _xyzzy=_plugh(“”);‘’ : Method Invocation BasicName.substring Error: Expression evaluation error.

Your expression is missing quotes around the strings, which causes an error if either locateaunit or locatemajorp is empty. It should be:

BasicName.contains("$locateaunit$")&&BasicName.substring(0,2)=="$locatemajorp$"