diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2011-10-05 11:29:32 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2011-10-05 11:29:32 +0000 |
commit | b8a8be5492e9f42d0940f9163af3f79c9cccf004 (patch) | |
tree | 866fac42062da2da4870082f3ff4538847146725 /java | |
parent | 857f1337ebc288a5bf088e21f0a255669985f187 (diff) | |
download | tigervnc-b8a8be5492e9f42d0940f9163af3f79c9cccf004.tar.gz tigervnc-b8a8be5492e9f42d0940f9163af3f79c9cccf004.zip |
Fix null pointer issue. Thanks DRC, that was driving me nuts.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4707 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/tigervnc/vncviewer/UserPrefs.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/tigervnc/vncviewer/UserPrefs.java b/java/src/com/tigervnc/vncviewer/UserPrefs.java index b3702210..f72ed5ab 100644 --- a/java/src/com/tigervnc/vncviewer/UserPrefs.java +++ b/java/src/com/tigervnc/vncviewer/UserPrefs.java @@ -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"); } |