Skip to content

Check commandline files, do not allow docs with null file#1129

Merged
davidmhewitt merged 3 commits intomasterfrom
check-commandline-files
Apr 1, 2022
Merged

Check commandline files, do not allow docs with null file#1129
davidmhewitt merged 3 commits intomasterfrom
check-commandline-files

Conversation

@jeremypw
Copy link
Copy Markdown
Collaborator

@jeremypw jeremypw commented Nov 17, 2021

Fixes #1123

Avoid creating document objects from null files or files with no determinable path when opened from the commandline or dropped onto Welcome screen.

There seems to be no good reason to allow Document objects to created from null files so the constructor is amended

@jeremypw jeremypw mentioned this pull request Dec 8, 2021
Copy link
Copy Markdown
Member

@davidmhewitt davidmhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This indeed looks like a sensible change to make and I can confirm it fixes the linked issue. Thanks for your work!

@davidmhewitt davidmhewitt enabled auto-merge (squash) April 1, 2022 13:31
@davidmhewitt davidmhewitt merged commit ae3e081 into master Apr 1, 2022
@davidmhewitt davidmhewitt deleted the check-commandline-files branch April 1, 2022 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

segfault when trying to open unknown URL protocols

2 participants