Skip to content

added: File.tryGetVersion - #2379

Merged
matthid merged 1 commit into
fsprojects:release/nextfrom
SCullman:fix_2378
Aug 25, 2019
Merged

matthid merged 1 commit into
fsprojects:release/nextfrom
SCullman:fix_2378

Conversation

@SCullman

Copy link
Copy Markdown
Contributor

fixes #2378

At least if helps to avoid dealing with NullReferenceException

@matthid

matthid commented Aug 17, 2019

Copy link
Copy Markdown
Member

Additionally, we should change getVersion to return null instead of throwing or throwing a different exception?

@matthid

matthid commented Aug 17, 2019

Copy link
Copy Markdown
Member

By the way don't worry about the build right now I have broken it in the release/next branch and trying to fix it... last good one is probably 64d5c19 in case you want to build locally.

@matthid matthid added the waiting for author Some information or action was requested and it needs to be addressed. Or a response from author label Aug 17, 2019
@SCullman

Copy link
Copy Markdown
Contributor Author

I would tend to a different exception, e.g.NoVersionFoundException. If anyone run into this before, and handled this with try/catch, that script would still work.

matthid added a commit that referenced this pull request Aug 25, 2019
- add tests
- Change getVersion to not throw nullreferenceException, fixes #2378
@matthid
matthid merged commit 6547bdc into fsprojects:release/next Aug 25, 2019
@SCullman
SCullman deleted the fix_2378 branch August 26, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting for author Some information or action was requested and it needs to be addressed. Or a response from author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File.getVersion fails if version is not set

2 participants