Fix java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/application/options/colors/ColorAndFontDescription.<init> must not be null

at com.intellij.application.options.colors.ColorAndFontDescription.<init>(ColorAndFontDescription.java)
    	at com.intellij.application.options.colors.TextAttributesDescription.<init>(TextAttributesDescription.java:38)
    	at com.intellij.ide.todo.configurable.PatternDialog$1.<init>(PatternDialog.java:73)
This commit is contained in:
Alexey Gopachenko
2015-02-15 09:22:26 +01:00
parent 8c4ad97293
commit 2d444c02da
2 changed files with 3 additions and 2 deletions
@@ -23,6 +23,7 @@ import com.intellij.openapi.editor.colors.EditorColorsScheme;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.editor.markup.EffectType;
import com.intellij.openapi.editor.markup.TextAttributes;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.awt.*;
@@ -30,7 +31,7 @@ import java.awt.*;
public abstract class TextAttributesDescription extends ColorAndFontDescription {
private final TextAttributes myAttributes;
public TextAttributesDescription(String name,
public TextAttributesDescription(@NotNull String name,
String group,
TextAttributes attributes,
TextAttributesKey type,
@@ -69,7 +69,7 @@ class PatternDialog extends DialogWrapper{
TextAttributes attributes = myPattern.getAttributes().getCustomizedTextAttributes();
myColorAndFontDescription = new TextAttributesDescription(null, null, attributes, null, EditorColorsManager.getInstance().getGlobalScheme(),
myColorAndFontDescription = new TextAttributesDescription("null", null, attributes, null, EditorColorsManager.getInstance().getGlobalScheme(),
null, null) {
@Override
public void apply(EditorColorsScheme scheme) {