Skip to content

Conversation

@Alugor
Copy link

@Alugor Alugor commented Aug 20, 2025

Fix NPE in textBackgroundOpacity when Color is null

  • Add null check for 'current' Color parameter in GUIItems.textBackgroundOpacity()
  • Default to alpha value of 255 when Color is null
  • Resolves PlayerInteractEvent crash when accessing text display GUI

Fixes crash: java.lang.NullPointerException: Cannot invoke "org.bukkit.Color.getAlpha()" because "current" is null

@rettichlp
Copy link

There is a pull request for this issue already: #41

@officialMex
Copy link

Published a release for this fix since the maintainer of this project discontinued it I guess -> https://github.com/officialMex/DisplayEntityEditor/releases/tag/v2.0.0-alpha

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants