]> source.dussan.org Git - tigervnc.git/commitdiff
Fix null pointer issue. Thanks DRC, that was driving me nuts.
authorBrian Hinz <bphinz@users.sourceforge.net>
Wed, 5 Oct 2011 11:29:32 +0000 (11:29 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Wed, 5 Oct 2011 11:29:32 +0000 (11:29 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4707 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tigervnc/vncviewer/UserPrefs.java

index b37022105742b6afceffa2059b242b84abf5353a..f72ed5ab73d2bd84466737bc1781f4a153d969f5 100644 (file)
@@ -160,7 +160,7 @@ public class UserPrefs extends Properties {
   final public static String getFileSeperator() {
     String seperator = null;
                try {
-                       seperator = System.getProperties().get("file.separator").toString();
+                       seperator = (String)System.getProperties().get("file.separator");
                } catch(java.security.AccessControlException e) {
                        System.out.println("Cannot access file.separator system property");
                }