Wizard: fix NPE on Mac

This commit is contained in:
Ilya Kirillov
2020-04-09 11:26:13 +03:00
parent 9d8d881bff
commit c9509380c3
@@ -84,7 +84,7 @@ class TemplateDescriptionComponent : Component() {
// taken from com.intellij.openapi.ui.panel.ComponentPanelBuilder.createCommentComponent
if (SystemInfo.isMac) {
val font = component.font
val font = this.font
val size = font.size2D
val smallFont = font.deriveFont(size - 2.0f)
this.font = smallFont