Skip to content

Commit da50f49

Browse files
committed
2 parents b157787 + ab42f3e commit da50f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/DirectoryEntry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var argscheck = require('cordova/argscheck'),
3838
var DirectoryEntry = function(name, fullPath, fileSystem, nativeURL) {
3939

4040
// add trailing slash if it is missing
41-
if (!/\/$/.test(fullPath)) {
41+
if ((fullPath) && !/\/$/.test(fullPath)) {
4242
fullPath += "/";
4343
}
4444
// add trailing slash if it is missing

0 commit comments

Comments
 (0)