From 8970bf4ddb106dc880cd37b916a2cc4c2f08168d Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Mon, 7 May 2012 01:02:24 +0000 Subject: [PATCH] Reverted change introduced in r4910, r4911 didn't fix the problem that was created. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4912 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/vncviewer/VncViewer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index bb2cbabc..a62d7365 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -143,8 +143,9 @@ public class VncViewer extends java.applet.Applet implements Runnable usage(); } - if (vncServerName.getValue() == "") - vncServerName.setParam(argv[i]); + if (vncServerName.getValue() != null) + usage(); + vncServerName.setParam(argv[i]); } } -- 2.39.5