Skip to content

Fix blank token name in variable prompt when GM name is empty#5955

Open
evanofficial wants to merge 1 commit intoRPTools:developfrom
evanofficial:fix/blank-token-name-in-variable-prompt
Open

Fix blank token name in variable prompt when GM name is empty#5955
evanofficial wants to merge 1 commit intoRPTools:developfrom
evanofficial:fix/blank-token-name-in-variable-prompt

Conversation

@evanofficial
Copy link
Copy Markdown

@evanofficial evanofficial commented Apr 4, 2026

Fixes #5339

When a token's GM name is cleared (set to "" instead of null), the variable prompt dialog shows a blank name or just a period. This is because getGMName() != null doesn't catch empty strings.

Replaced the null checks with StringUtil.isEmpty() so both null and "" are handled consistently, falling back to the token's regular name when the GM name is empty.


This change is Reviewable

@github-actions github-actions bot added the bug label Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Missing "Name" on a Copied Token with no GM Name in Pop-up Window for Unknown Variable

1 participant