From: Brian Hinz Date: Mon, 7 May 2012 01:02:24 +0000 (+0000) Subject: Reverted change introduced in r4910, r4911 didn't fix the problem that was created. X-Git-Tag: v1.2.90~173 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8970bf4ddb106dc880cd37b916a2cc4c2f08168d;p=tigervnc.git 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 --- 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]); } }