Skip to content

Conversation

ynse01
Copy link
Contributor

@ynse01 ynse01 commented Mar 11, 2022

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

This PR fixes #2056

When an ExifArrayValue has a null value, don't bother to clone that value. Just write the null value in the clone also.

@ynse01 ynse01 changed the title Fix and test Fix null reference exception on Exif clone of null ExifArrayValue Mar 11, 2022
Copy link
Collaborator

@brianpopow brianpopow left a comment

Choose a reason for hiding this comment

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

@ynse01: Looks good, thank you for the fix!

@brianpopow brianpopow merged commit e73f21f into SixLabors:main Mar 11, 2022
@JimBobSquarePants JimBobSquarePants added this to the 2.1.0 milestone Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.NullReferenceException when resizing jpeg file
3 participants