I tried to traverse through all nodes of my document to find certain text with certain color. I used this code to do the iteration:
I encountered an NullPointerException when running tests. What might be wrong?
I tried to traverse through all nodes of my document to find certain text with certain color. I used this code to do the iteration:
I encountered an NullPointerException when running tests. What might be wrong?
@jinchenhao2011 Could you please attach the problematic document here for testing? We will check the issue and provide you more information.
@jinchenhao2011 Thank you for additional information. Unfortunately, I cannot reproduce the problem on my side using the latest 23.11 version of Aspose.Words for Java. Please try using the latest version and let us know if the problem still persist on your side.