Do you have a 100% reproducible test case? How small is it? On 11/6/14, 11:31 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>If someone has the time to walk through this with me off-list, that would >be very helpful. I’d really like an extra set of eyeballs to make sure >I’m not missing something with this and I don’t blow things up. I don’t >have a good enough grasp on exactly how the management of TextFlowLines >is supposed to be working. > >On Nov 6, 2014, at 7:15 PM, Alex Harui <aha...@adobe.com> wrote: > >> My memory is a bit fuzzy. I thought TextLine recycling wasn’t >> per-paragraph, or is there a TextBlock per paragraph? >> >> The doc says that TextBlock.createTextLine/recreateTextLine returns null >> if the TextBlock is empty or if the width specified is less than the >>width >> of the next element, and to check the TextBlock.textLineCreationResult >> property if you get a null. >> >> Could it just be that the number of lines in the paragraph when to zero? >> >> -Alex >> >> On 11/6/14, 2:26 AM, "Harbs" <harbs.li...@gmail.com> wrote: >> >>> I ran into an issue where I have a runtime error in >>> TextFlowLine.getTextLine(). I’m having trouble stepping through things, >>> but as best as I can figure, the issue is caused by the umber of lines >>>in >>> a paragraph becoming reduced. >>> >>> The RTE happens inside TextFlowline.recreateTextLine() after requesting >>> the line from the TextBlock. The function (I’m not sure if it’s >>> createTextLine or recreateTextLine) returns null. The >>>TextBlock.lastLine >>> is the line before the current one. >>> >>> The caller of this mess is ComposeState.composeNextLine. >>> >>> If anyone is still following me, my problem is I’m not sure the best >>>way >>> to fix this. I’m not sure why this is breaking now. I’m not sure what I >>> changed that’s causing this error. Should I fix >>> TextFlowLine.getTextLine() to return null if there’s no more lines in >>>the >>> paragraph? Will there be any other repercussions from doing that? >>>Should >>> I fix ComposeState/BaseCompose so it does not try to compose the next >>> line once the paragraph is out of lines? >>> >>> Is anyone familiar enough with the composer to even give me >>>suggestions? >>> :-( >>> >>> Harbs >> >