]> source.dussan.org Git - tigervnc.git/commitdiff
Reverted change introduced in r4910, r4911 didn't fix the problem that was created.
authorBrian Hinz <bphinz@users.sourceforge.net>
Mon, 7 May 2012 01:02:24 +0000 (01:02 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Mon, 7 May 2012 01:02:24 +0000 (01:02 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4912 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/VncViewer.java

index bb2cbabc8014cfd75406a0db78fa99cf3c77cd2c..a62d736527489606b8e15d0b3278b3ebd203632a 100644 (file)
@@ -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]);
     }
 
   }