]> source.dussan.org Git - tigervnc.git/commitdiff
Fixed a null pointer exception introduced by r4909
authorBrian Hinz <bphinz@users.sourceforge.net>
Mon, 7 May 2012 00:30:08 +0000 (00:30 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Mon, 7 May 2012 00:30:08 +0000 (00:30 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4911 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/com/tigervnc/vncviewer/VncViewer.java

index 85da24997291871bcd23a382155f69cf287a79c9..bb2cbabc8014cfd75406a0db78fa99cf3c77cd2c 100644 (file)
@@ -143,7 +143,7 @@ public class VncViewer extends java.applet.Applet implements Runnable
         usage();
       }
 
-      if (vncServerName.getValue() == null)
+      if (vncServerName.getValue() == "")
         vncServerName.setParam(argv[i]);
     }
 
@@ -366,7 +366,7 @@ public class VncViewer extends java.applet.Applet implements Runnable
   StringParameter passwordFile
   = new StringParameter("PasswordFile",
                         "Password file for VNC authentication",
-                        null);
+                        "");
   AliasParameter passwd
   = new AliasParameter("passwd",
                        "Alias for PasswordFile",