]> source.dussan.org Git - tigervnc.git/commitdiff
(U) Fix invalid String comparison
authorBrian P. Hinz <bphinz@users.sf.net>
Tue, 15 Mar 2016 00:41:48 +0000 (20:41 -0400)
committerBrian P. Hinz <bphinz@users.sf.net>
Tue, 15 Mar 2016 00:41:48 +0000 (20:41 -0400)
java/com/tigervnc/vncviewer/CConn.java

index 9128b210bdcb28a512f9e4189adcefb300d16b4f..9a7947379da0ec323539e435d0bc6eda57aa311b 100644 (file)
@@ -191,7 +191,7 @@ public class CConn extends CConnection implements
     String passwordFileStr = viewer.passwordFile.getValue();
     PasswdDialog dlg;
 
-    if (user == null && passwordFileStr != "") {
+    if (user == null && !passwordFileStr.equals("")) {
       InputStream fp = null;
       try {
         fp = new FileInputStream(passwordFileStr);