Aspose words issue after upgrading version

Hello,

We recently upgraded aspose words from 15.12.0 to 17.11. In one of our code we have used:

cell.getCellFormat().borders.clearFormatting()

AFter upgrading we are getting following error at this line:

java.lang.NullPointerException
at com.aspose.words.Row.isLastRow(Unknown Source)
at com.aspose.words.Cell.fetchInheritedCellAttr(Unknown Source)
at com.aspose.words.CellFormat.fetchInheritedBorderAttr(Unknown Source)
at com.aspose.words.Border.zzy6(Unknown Source)
at com.aspose.words.Border.zzz5(Unknown Source)
at com.aspose.words.Border.clearFormatting(Unknown Source)
at com.aspose.words.BorderCollection.clearFormatting(Unknown Source)
at com.aspose.words.BorderCollection$clearFormatting.call(Unknown Source)…

What changes should we made to make this work?

Thanks,

@HThagunna,

Thanks for your inquiry. To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a simple Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we’ll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.