Optional heap memory status widget in the titlebar

This commit is contained in:
Jindra Petřík
2025-07-07 18:15:19 +02:00
parent eebf0021ff
commit 3508260abb
10 changed files with 33 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ public class TextPanel extends JPanel implements TagEditorPanel {
textValue.setCaretPosition(0);
setModified(false);
setEditText(false);
boolean readOnly = ((Tag) textTag).isReadOnly();
boolean readOnly = textTag == null ? true : ((Tag) textTag).isReadOnly();
if (readOnly) {
textValue.setEditable(false);
}