You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On player client, getInfo() & getName() functions thrown an exception whether run trusted or un-trusted:
java.util.concurrent.ExecutionException: java.lang.NullPointerException: Cannot invoke "net.rptools.maptool.model.player.PlayerInfo.name()" because "playerInfo" is null
Error trace : Get Info@campaign
java.lang.NullPointerException: Cannot invoke "net.rptools.maptool.model.player.PlayerInfo.name()" because the return value of "java.util.concurrent.CompletableFuture.get()" is null error executing expression player.getName().
Error trace : Get Name@campaign
Also on player client, both getPlayers() and getConnectedPlayers() return the info for only the GM player but uses the Default Username as set in preferences and not the GM name as entered on the Start Server dialog.
Passing a name to player.getInfo() that isn't in the player database produces an exception.
java.util.concurrent.ExecutionException: java.lang.NullPointerException: Cannot invoke "net.rptools.maptool.model.player.PlayerInfo.name()" because "playerInfo" is null
Error trace : Get Info Error@campaign
To Reproduce
Steps to reproduce the behavior:
Create a macro with [r: player.getInfo() ] on Campaign panel.
Run macro from a player client and see above exception.
Create a macro with [r: player.getName() ] on Campaign panel.
Run macro from a player client and see above exception.
Create a trusted macro with [r: player.getPlayers() ] on Campaign Panel
Run macro from a player client. Only returns the GM but has the Default GM Name and not the actual GM name.
Create a trusted macro with [r: player.getConnectPlayers() ] on Campaign Panel
Run macro from a player client. Only returns the GM but has the Default GM Name and not the actual GM name.
Create a trusted macro with [r: player.getInfo("somenamenotindb") ] on Campaign Panel
Run macro from any client.
Expected behavior
For both step 2 and 4, the macros should return the correct information for the current player.
For both steps 6 and 8, expect to see all players or all connected players and that the GM info would have the correct name.
For step 10, expect to see error message such as Player "name" not found in database.
MapTool Info
Version: Current dev code
Install: from dev environment
Desktop (please complete the following information):
OS: Windows
Version: 10
Additional context
See issue #2912 for info on functions.
The text was updated successfully, but these errors were encountered:
Describe the bug
On player client, getInfo() & getName() functions thrown an exception whether run trusted or un-trusted:
Also on player client, both
getPlayers()
andgetConnectedPlayers()
return the info for only the GM player but uses the Default Username as set in preferences and not the GM name as entered on the Start Server dialog.Passing a name to
player.getInfo()
that isn't in the player database produces an exception.To Reproduce
Steps to reproduce the behavior:
[r: player.getInfo() ]
on Campaign panel.[r: player.getName() ]
on Campaign panel.[r: player.getPlayers() ]
on Campaign Panel[r: player.getConnectPlayers() ]
on Campaign Panel[r: player.getInfo("somenamenotindb") ]
on Campaign PanelExpected behavior
For both step 2 and 4, the macros should return the correct information for the current player.
For both steps 6 and 8, expect to see all players or all connected players and that the GM info would have the correct name.
For step 10, expect to see error message such as
Player "name" not found in database.
MapTool Info
Desktop (please complete the following information):
Additional context
See issue #2912 for info on functions.
The text was updated successfully, but these errors were encountered: