Skip to content

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

Merged
cwisniew merged 1 commit intoRPTools:developfrom
evanofficial:fix/blank-token-name-in-variable-prompt
Apr 16, 2026
Merged

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

Conversation

@evanofficial
Copy link
Copy Markdown
Contributor

@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
@cwisniew cwisniew added this pull request to the merge queue Apr 16, 2026
Merged via the queue into RPTools:develop with commit 4dfbaac Apr 16, 2026
5 checks passed
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

2 participants