Kaydet (Commit) 0ae24c21 authored tarafından Noel Grandin's avatar Noel Grandin

java: fix access to always null field

this cannot have ever worked, but at least it'll stop bugging me now

Change-Id: Idd9738358d18770258ca0648afe4b9256458a4d6
üst ce3e78b6
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
import javax.swing.JEditorPane; import javax.swing.JEditorPane;
import javax.swing.event.HyperlinkListener; import javax.swing.event.HyperlinkListener;
import javax.swing.event.HyperlinkEvent; import javax.swing.event.HyperlinkEvent;
import javax.swing.text.Document;
class TextLogger class TextLogger
extends JEditorPane extends JEditorPane
...@@ -52,11 +51,9 @@ class TextLogger ...@@ -52,11 +51,9 @@ class TextLogger
{ {
try try
{ {
maDocument.insertString (maDocument.getLength(), sText, null); getDocument().insertString (getDocument().getLength(), sText, null);
} }
catch (javax.swing.text.BadLocationException e) catch (javax.swing.text.BadLocationException e)
{} {}
} }
private Document maDocument;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment