fix for undefined cmds

This commit is contained in:
Iuri Matias 2018-10-17 13:22:08 -04:00 committed by Pascal Precht
parent a394504e23
commit 02ad9b314a
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class Suggestions {
} }
getSuggestions(cmd) { getSuggestions(cmd) {
if (!cmd) return []
cmd = cmd.toLowerCase() cmd = cmd.toLowerCase()
let suggestions = [] let suggestions = []