summaryrefslogtreecommitdiffstats
path: root/libjava/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/java/awt/EmbeddedWindow.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/gnu/java/awt/EmbeddedWindow.java b/libjava/gnu/java/awt/EmbeddedWindow.java
index 24bd107bd2b..ba0184a6307 100644
--- a/libjava/gnu/java/awt/EmbeddedWindow.java
+++ b/libjava/gnu/java/awt/EmbeddedWindow.java
@@ -108,8 +108,8 @@ public class EmbeddedWindow extends Frame
throw new RuntimeException ("EmbeddedWindow is already embedded");
this.handle = handle;
- if (peer != null)
- ((EmbeddedWindowPeer) peer).embed (this.handle);
+ if (getPeer() != null)
+ ((EmbeddedWindowPeer) getPeer()).embed (this.handle);
}
/**
OpenPOWER on IntegriCloud