diff --git a/lib/modules/console/suggestions.js b/lib/modules/console/suggestions.js index 610e5d143..261924057 100644 --- a/lib/modules/console/suggestions.js +++ b/lib/modules/console/suggestions.js @@ -24,6 +24,7 @@ class Suggestions { } getSuggestions(cmd) { + if (!cmd) return [] cmd = cmd.toLowerCase() let suggestions = []