Skip to content

Commit 73067b9

Browse files
Fix NRE
1 parent 12da625 commit 73067b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ImageSharp/Formats/Gif/GifEncoderCore.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ private void WriteGraphicalControlExtension(GifFrameMetadata? metadata, int tran
560560
bool hasTransparency;
561561
if (metadata is null)
562562
{
563+
metadata = new();
563564
hasTransparency = transparencyIndex > -1;
564565
}
565566
else

0 commit comments

Comments
 (0)