Skip to content

Conversation

@denblackstache
Copy link
Contributor

Problem

IdeaVim WhichKey crashes with java.lang.NullPointerException: getForegroundColor(...) must not be null.
https://github.com/TheBlob42/idea-which-key/blob/main/src/main/kotlin/eu/theblob42/idea/whichkey/config/FormatConfig.kt#L21

Stacktrace

java.lang.NullPointerException: getForegroundColor(...) must not be null
	at eu.theblob42.idea.whichkey.config.FormatConfig.getDefaultKeywordColor(FormatConfig.kt:21)
	at eu.theblob42.idea.whichkey.config.FormatConfig.getDescPrefixColor(FormatConfig.kt:89)
	at eu.theblob42.idea.whichkey.config.FormatConfig.formatMappingEntry(FormatConfig.kt:121)
	at eu.theblob42.idea.whichkey.config.PopupConfig.showPopup(PopupConfig.kt:101)
	at eu.theblob42.idea.whichkey.WhichKeyTypeActionHandler.beforeExecute(WhichKeyTypeActionHandler.kt:66)
	...

Solution

Set up the default keyword color

P.S. I'm open to suggestions on how this can be done in the right way.

SCR-20250428-pmgj

@nabato nabato merged commit cd6ce99 into nabato:main Apr 29, 2025
1 of 2 checks passed
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.

2 participants