diff --git a/src/com/jpexs/decompiler/flash/gui/TextPanel.java b/src/com/jpexs/decompiler/flash/gui/TextPanel.java index 52838d47b..85e5958d2 100644 --- a/src/com/jpexs/decompiler/flash/gui/TextPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/TextPanel.java @@ -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) {