From aa7b5614b85eb5f88298adb6ddefea9a69c50d0c Mon Sep 17 00:00:00 2001 From: Constantin Kaplinsky Date: Tue, 17 Jun 2008 09:27:52 +0000 Subject: Eliminated one call to a deprecated method, and one potential NullPointerException. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2586 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/src/com/tightvnc/rfbplayer/RfbPlayer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'java/src/com/tightvnc/rfbplayer') diff --git a/java/src/com/tightvnc/rfbplayer/RfbPlayer.java b/java/src/com/tightvnc/rfbplayer/RfbPlayer.java index 697dfae3..4b1f4fad 100644 --- a/java/src/com/tightvnc/rfbplayer/RfbPlayer.java +++ b/java/src/com/tightvnc/rfbplayer/RfbPlayer.java @@ -123,7 +123,7 @@ public class RfbPlayer extends java.applet.Applet if (inSeparateFrame) { vncFrame.pack(); - vncFrame.show(); + vncFrame.setVisible(true); } else { validate(); } @@ -260,7 +260,7 @@ public class RfbPlayer extends java.applet.Applet } public void updatePos() { - if (showControls) + if (showControls && buttonPanel != null) buttonPanel.setPos(rfb.fbs.getTimeOffset()); } -- cgit v1.2.3