summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-17 11:15:15 +0200
committerNoel Grandin <noel@peralex.com>2014-12-19 10:41:57 +0200
commit0ae24c2189ea68576c96fcbe87299b51256cb468 (patch)
tree1f9c4b01d96be5fbf026f57352a57cdb291131bc /toolkit
parentce3e78b6a0add1e1d2c3b5ca8ebca643d9c232d0 (diff)
java: fix access to always null field
this cannot have ever worked, but at least it'll stop bugging me now Change-Id: Idd9738358d18770258ca0648afe4b9256458a4d6
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/test/accessibility/TextLogger.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/toolkit/test/accessibility/TextLogger.java b/toolkit/test/accessibility/TextLogger.java
index fde7488a6eda..952d14015973 100644
--- a/toolkit/test/accessibility/TextLogger.java
+++ b/toolkit/test/accessibility/TextLogger.java
@@ -19,7 +19,6 @@
import javax.swing.JEditorPane;
import javax.swing.event.HyperlinkListener;
import javax.swing.event.HyperlinkEvent;
-import javax.swing.text.Document;
class TextLogger
extends JEditorPane
@@ -52,11 +51,9 @@ class TextLogger
{
try
{
- maDocument.insertString (maDocument.getLength(), sText, null);
+ getDocument().insertString (getDocument().getLength(), sText, null);
}
catch (javax.swing.text.BadLocationException e)
{}
}
-
- private Document maDocument;
}