java.util.EmptyStackException
at java.util.Stack.peek(Stack.java:79)
at com.aspose.words.atv.visitRun(TxtWriter.java: 113)
at com.aspose.words.Run.accept(Run.java: 88)
at com.aspose.words.atv.x(TxtWriter.java: 67)
at com.aspose.words.Document.b(Document.java: 1298)
at com.aspose.words.Node.toTxt(Node.java: 571)
Hi
Thanks for your request. Yes, we are aware of this issue. We will let you know once this problem is resolved.
You can use Run.getText() instead of Run.toTxt() while you are waiting for a fix.
Best regards,
I am in the same situation as alourinho with Aspose.Words 11.0.0: while testing Aspose.Words 11, the same EmptyStackException bug occurs when invoking Run.toTxt().
Unfortunately, we cannot consider working around this bug by means of the getTxt() you suggested.
Could you please provide us with a potentiel deadline for this bug’s effective correction? This is a crucial point to us.
Thanks for your request. As far i know, the exception is thrown when you try calling toTxt() method on Run that has no text. So as a workaround, you can simply check whether the Run has some text using getText() method and if so get text using toTxt(), otherwise simply ignore empty Run.
We will let you know once the problem is resolved. I will ask the responsible developer t take a look at the issue shortly.