small fix

This commit is contained in:
honfika@gmail.com
2015-05-09 00:49:58 +02:00
parent b906ab0d77
commit 7ea4f2663e

View File

@@ -184,7 +184,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
public void focusTextValue() {
textValue.requestFocusInWindow();
if (!isModified()) {
if (textTag != null && !isModified()) {
HighlightedText text = textTag.getFormattedText();
for (Highlighting highlight : text.specialHilights) {
if (highlight.getProperties().subtype == HighlightSpecialType.TEXT) {