NPE fix for TraverseUITest

This commit is contained in:
Rustam Vishnyakov
2016-12-19 20:19:57 +03:00
parent bced3cbb4d
commit 1afddbc651
@@ -130,7 +130,7 @@ public class SchemesPanel extends AbstractSchemesPanel<EditorColorsScheme> imple
@Nullable
@Override
protected EditorColorsScheme getCurrentScheme() {
return myOptions.getScheme(getSelectedSchemeName());
return myOptions != null ? myOptions.getScheme(getSelectedSchemeName()) : null;
}
};
}