Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: player.getName() fails for player on the server if player database is not being used. #3462

Closed
cwisniew opened this issue Jul 8, 2022 · 1 comment · Fixed by #3463
Assignees
Labels
bug tested This issue has been QA tested by someone other than the developer.

Comments

@cwisniew
Copy link
Member

cwisniew commented Jul 8, 2022

Describe the Bug

When the player.getName() macro function is run on the server it will fail with a null pointer exception if the server was started without a player database.

To Reproduce

Start a server, ensure that the use easy connect and use player database are not checked.
in chat type [player.getName()]

Expected Behaviour

It should return the player name and not an error.

Screenshots

No response

MapTool Info

Version 1.11.x

Desktop

All platforms

Additional Context

No response

@cwisniew cwisniew added the bug label Jul 8, 2022
@cwisniew cwisniew self-assigned this Jul 8, 2022
@Phergus Phergus added the tested This issue has been QA tested by someone other than the developer. label Jul 11, 2022
@Phergus
Copy link
Contributor

Phergus commented Jul 11, 2022

Tested. No longer produces NPE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug tested This issue has been QA tested by someone other than the developer.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants