Skip to content

Commit

Permalink
Update WzSerializer.cs
Browse files Browse the repository at this point in the history
Image null Let it continue
  • Loading branch information
454020312 authored Aug 8, 2023
1 parent 46dba7a commit 6761a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapleLib/WzLib/WzSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ protected void WritePropertyToJsonBson(JObject json, string depth, WzImageProper
byte[] pngbytes;
using (MemoryStream stream = new MemoryStream())
{
propertyCanvas.PngProperty.GetImage(false).Save(stream, System.Drawing.Imaging.ImageFormat.Png);
propertyCanvas.PngProperty.GetImage(false)?.Save(stream, System.Drawing.Imaging.ImageFormat.Png);
pngbytes = stream.ToArray();
}
jsonCanvas.Add(FIELD_BASEDATA_NAME, Convert.ToBase64String(pngbytes));
Expand Down

0 comments on commit 6761a24

Please sign in to comment.