We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cannot accept revisions: IllegalStateException, no parent

Hi,

Aspose Words for Java (tested v17.9) cannot accept revisions on the following RTF test.zip (5.1 KB).

“java.lang.IllegalStateException: Cannot remove because there is no parent.
at com.aspose.words.Node.remove(Unknown Source)”

Document doc = new Document("test.rtf");
doc.acceptAllRevisions();

Thanks

Romain

@flammang,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-15871. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@flammang,

The issues you have found earlier (filed as WORDSNET-15871) have been fixed in this Aspose.Words for .NET 17.10 update and this Aspose.Words for Java 17.10 update.