From 7ea4f2663e8076ccb3b56f617beacb9e15696aca Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sat, 9 May 2015 00:49:58 +0200 Subject: [PATCH] small fix --- src/com/jpexs/decompiler/flash/gui/TextPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {