Skip to content
Snippets Groups Projects
Commit 8febb1d8 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

NullPointerException avoided (detected during SCAN-936)

parent d72882c8
No related branches found
No related tags found
No related merge requests found
......@@ -370,7 +370,7 @@ public class TextArea extends JPanel
text = ObjectUtils.EMPTY_STRING;
}
String oldText = getText();
if (!oldText.equals(text)) {
if (!text.equals(oldText)) {
textArea.getDocument().removeDocumentListener(this);
textArea.setText(text);
textArea.getDocument().addDocumentListener(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment