From 02ad9b314a89925ba6a520ae3fb57a8222feea87 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 17 Oct 2018 13:22:08 -0400 Subject: [PATCH] fix for undefined cmds --- lib/modules/console/suggestions.js | 1 + 1 file changed, 1 insertion(+) 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 = []