Skip to content

Commit a65b38d

Browse files
authored
Merge pull request #394 from noctis0430-open-source/Issue/390
Fix #390
2 parents c918cbf + d97199a commit a65b38d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PdfSharpCore/Pdf.Filters/FlateDecode.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public byte[] Encode(byte[] data, PdfFlateEncodeMode mode)
8181
/// </summary>
8282
public override byte[] Decode(byte[] data, FilterParms parms)
8383
{
84+
if (data.Length == 0) return data;
85+
8486
MemoryStream msInput = new MemoryStream(data);
8587
MemoryStream msOutput = new MemoryStream();
8688

0 commit comments

Comments
 (0)