Skip to content

[41 beta 1] LUA exception on ground context menu #79

Description

@ccomp

Reproduction steps:
Right-click on a ground tile and the exception gets thrown (sometimes?). I was able to get this thrown more consistently on farm land in Muldraugh.
There's an issue with this function call on line 70: trellisFarming.getCurrentVinePlanting(v:getSquare())

Stack trace:

function: doTrellisMenu2 -- file: ISTrellisMenu.lua line # 70
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@5452639a
function: createMenu -- file: ISWorldObjectContextMenu.lua line # 1458
function: createMenu -- file: ISMenuContextWorld.lua line # 46
function: createWorldMenu -- file: ISContextManager.lua line # 28
function: doRClick -- file: ISObjectClickHandler.lua line # 45
function: onObjectRightMouseButtonUp -- file: ISObjectClickHandler.lua line # 239.
[01-06-20 03:15:12.532] ERROR: General, 1591002912532> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getCurrentVinePlanting of non-table: null at KahluaThread.tableget line:1684..
[01-06-20 03:15:12.534] ERROR: General, 1591002912534> DebugLogStream.printException> Stack trace:.
[01-06-20 03:15:12.541] LOG : General, 159100291254> -----------------------------------------

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions