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

Reply via email to