Browse Source

Don't access protected vars

Change-Id: Ia332992e0259e88511b60cf565c7b09f5fc4e796
Reviewed-on: http://gerrit.dmdirc.com/2123
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.7rc1
Chris Smith 13 years ago
parent
commit
3a3a63aeaa
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/com/dmdirc/addons/logging/HistoryWindow.java

+ 1
- 2
src/com/dmdirc/addons/logging/HistoryWindow.java View File

@@ -68,13 +68,12 @@ public class HistoryWindow extends FrameContainer {
68 68
     @Override
69 69
     public void windowClosed() {
70 70
         // 7: Remove any references to the window and parents
71
-        parent = null; // NOPMD
72 71
     }
73 72
 
74 73
     /** {@inheritDoc} */
75 74
     @Override
76 75
     public Server getServer() {
77
-        return parent == null ? null : parent.getServer();
76
+        return getParent() == null ? null : getParent().getServer();
78 77
     }
79 78
 
80 79
 }

Loading…
Cancel
Save