Commit 87f39e79 authored by Eirik Alvær's avatar Eirik Alvær
Browse files

prevent crash when getShortHelpDescription is called with invalid parameter

parent 52a130e2
......@@ -248,7 +248,9 @@ function CommandExecutor() {
},
getShortHelpDescription: function (command) {
return helpTexts[command].shortDescription;
if (helpTexts[command]) {
return helpTexts[command].shortDescription;
}
}
};
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment