invalid menu command ids aren't filtered out
Issue #91
resolved
- open KBar Settings
- click Add Button > Invoke Menu Command
- for the command id, enter: "3000" or \"3000* or anything that's not really a number
- click ok
- click toolbar button
--> Unable to execute script at line 1. After Effects error: Unable to call “executeCommand” because of parameter 1. NaN is not an integer.
unsure how you're doing detection of menu command ids, but could there be some filtering/conversion that happens to sanitize it so the user doesn't get an error? sure, this is me trying to stress the code, so hopefully most users won't run into this.
Comments (3)
-
-
- changed status to resolved
Resolved
#91→ <<cset 7e111bebce29>>
-
reporter fyi, the new error message:
Could not run menu item ""3000"" Perhaps there was a typo?. Error: Command Id for ""3000"" was not found.
has an extra period after the question mark.
- Log in to comment
Thank you for stress testing. I am sanitizing and this is definitely a bug.