-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoiding a crash on empty input filename - Issue #3549 #3899
Conversation
Source/DafnyDriver/DafnyDriver.cs
Outdated
@@ -273,6 +273,10 @@ public enum CommandLineArgumentsResult { | |||
|
|||
bool isDafnyFile = false; | |||
try { | |||
if (file == "") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code isn't triggered in the tests. Can it be hit? Consider either adding a test or removing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revmoed it -- the error is caught earlier by the Boogie commandline parser.
Fixes #3549
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.