Browse Source

Add pointer null check on construction

js/color-alpha-handling
Sergio Pedri 5 years ago
parent
commit
04b5978e09
  1. 1
      src/ImageSharp/Image.WrapMemory.cs

1
src/ImageSharp/Image.WrapMemory.cs

@ -242,6 +242,7 @@ namespace SixLabors.ImageSharp
ImageMetadata metadata)
where TPixel : unmanaged, IPixel<TPixel>
{
Guard.IsFalse(pointer == null, nameof(pointer), "Pointer must be not null");
Guard.NotNull(configuration, nameof(configuration));
Guard.NotNull(metadata, nameof(metadata));

Loading…
Cancel
Save