Skip to content

Catch PNG chunk processing errors #201

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

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Catch PNG chunk processing errors #201

merged 1 commit into from
Aug 27, 2019

Conversation

kwhopper
Copy link
Collaborator

Good metadata is lost when PNG chunks encounter processing errors. Refactor so errors can be recorded while preserving this good metadata.

…factor so errors can be recorded while preserving good metadata.
foreach (var chunk in chunks)
{
if(directories == null)
directories = new List<Directory>();
Copy link
Owner

Choose a reason for hiding this comment

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

As an aside, I'd like to upgrade to C# 8 soon, after which we'll be able to write directories ??= new List<Directory>().

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.

2 participants