fix possible NPE
authorKonstantin Bulenkov <kb@jetbrains.com>
Tue, 18 Oct 2016 09:16:20 +0000 (11:16 +0200)
committerKonstantin Bulenkov <kb@jetbrains.com>
Tue, 18 Oct 2016 09:16:20 +0000 (11:16 +0200)
platform/platform-api/src/com/intellij/ui/tabs/impl/TabLabel.java

index 8ea643abd50fa1d3894258753c9bff73a40c78b5..aae8f0043f5f178d7a2274511e1ef9913b7a09eb 100644 (file)
@@ -463,6 +463,10 @@ public class TabLabel extends JPanel implements Accessible {
   }
 
   public void apply(UiDecorator.UiDecoration decoration) {
+    if (decoration == null) {
+      return;
+    }
+
     if (decoration.getLabelFont() != null) {
       setFont(decoration.getLabelFont());
       getLabelComponent().setFont(decoration.getLabelFont());