From dcd8e9df989af4a53946e3e2a86286b87af45177 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 15 Jan 2016 11:25:41 +0000 Subject: [PATCH] path might not be a string --- plugins/c9.vfs.server/vfs_proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/c9.vfs.server/vfs_proxy.js b/plugins/c9.vfs.server/vfs_proxy.js index c73732fb..37ecbde4 100644 --- a/plugins/c9.vfs.server/vfs_proxy.js +++ b/plugins/c9.vfs.server/vfs_proxy.js @@ -47,7 +47,7 @@ module.exports = function(methods, vfsHome, vfsWorkspace) { }); args[1] = options; - if (path.charAt(0) == "~") { + if (typeof path == "string" && path.charAt(0) == "~") { args[0] = substituteTilde(path); vfsHome[name].apply(vfsHome, args);