intellij-community icon indicating copy to clipboard operation
intellij-community copied to clipboard

Wrap call to LafManager.getInstance().getCurrentUIThemeLookAndFeel() in null check to prevent NPE during headless testing.

Open ChrisCarini opened this issue 1 year ago • 0 comments

Summary

Wrap call to LafManager.getInstance().getCurrentUIThemeLookAndFeel() in null check to prevent NPE during headless testing.

Issue

See below for details:

  • https://intellij-support.jetbrains.com/hc/en-us/community/posts/16040325332882-Calling-AboutTroubleInfoCollector-collectInfo-method-throws-NPE-in-tests-because-of-com-intellij-ide-ui-LafManager-getCurrentUIThemeLookAndFeel-is-null?page=1#community_comment_16830339751954
  • https://youtrack.jetbrains.com/issue/IDEA-345108/Calling-AboutTroubleInfoCollector.collectInfo-method-throws-NPE-in-tests-because-of

ChrisCarini avatar Feb 05 '24 12:02 ChrisCarini