pathsToOpen and foldersToOpen may be undefined

This commit is contained in:
Ash Wilson 2019-01-24 15:17:26 -05:00
parent 88d7c6dbdd
commit f68a511a90
No known key found for this signature in database
GPG Key ID: 81B1DDB704F69D2A

View File

@ -249,7 +249,7 @@ class AtomApplication extends EventEmitter {
timeout,
env
})
} else if (pathsToOpen.length > 0 || foldersToOpen.length > 0) {
} else if ((pathsToOpen && pathsToOpen.length > 0) || (foldersToOpen && foldersToOpen.length > 0)) {
return this.openPaths({
pathsToOpen,
foldersToOpen,