Hi Team,
I’m using Aspose.Words for Java 14.6.
- If I’ve an empty inner table, I get NPE while saving the word or pdf document. However, the exception is not seen if the outer table is empty. This seems like a defect.
- The error details are not user friendly. It just says NPE without any more details.
Thanks,
Kumar
Document doc = new Document();
DocumentBuilder docBuilder = new DocumentBuilder(doc);
Table table = null;
docBuilder.startTable();
docBuilder.insertCell();
docBuilder.write("abc");
docBuilder.startTable();
table = docBuilder.endTable();
// table.remove();
docBuilder.endRow();
table = docBuilder.endTable();
doc.save("C:\test_old.doc");
Exception in thread "main" java.lang.NullPointerException
at com.aspose.words.zzJ5.zzT(Unknown Source)
at com.aspose.words.zzZF2.zzZfE(Unknown Source)