diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2012-05-07 00:30:08 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2012-05-07 00:30:08 +0000 |
commit | 188080b6334a533395b08d2801d4db3c96986145 (patch) | |
tree | f3502eb3a6a9c8705635e5b7efa6b8a948c7e121 | |
parent | 94653cf165d42da80d734d3d5672cc0041a976a2 (diff) | |
download | tigervnc-188080b6334a533395b08d2801d4db3c96986145.tar.gz tigervnc-188080b6334a533395b08d2801d4db3c96986145.zip |
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
-rw-r--r-- | java/com/tigervnc/vncviewer/VncViewer.java | 4 |
1 files 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", |