PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

MigraDoc.Rendering.ParagraphRender NullReferenceException
http://forum.pdfsharp.com/viewtopic.php?f=3&t=3566
Page 1 of 1

Author:  frussell [ Fri Apr 07, 2017 12:11 am ]
Post subject:  MigraDoc.Rendering.ParagraphRender NullReferenceException

MigraDoc.Rendering.ParagraphRender.FormatSoftHyphen() I had to add the following to prevent a null nextIter from throwing a null reference exception all the way out to PdfDocumentRenderer.RenderDocument()

Starting at line 2023 of ParagraphRenderer.cs:
if (nextIter == null)
{
return FormatResult.Continue;
}

This was a real weird edge case. Been using this library for years and this just popped up.
MigraDoc.Rendering.dll Version 1.32.3885.0

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/