From 188080b6334a533395b08d2801d4db3c96986145 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Mon, 7 May 2012 00:30:08 +0000 Subject: [PATCH] Fixed a null pointer exception introduced by r4909 git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4911 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- java/com/tigervnc/vncviewer/VncViewer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/tigervnc/vncviewer/VncViewer.java b/java/com/tigervnc/vncviewer/VncViewer.java index 85da2499..bb2cbabc 100644 --- a/java/com/tigervnc/vncviewer/VncViewer.java +++ b/java/com/tigervnc/vncviewer/VncViewer.java @@ -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", -- 2.39.5