PDF Processing Errors in Aspose PDF for Java (v25.1)

We are experiencing NullPointerException errors when processing PDFs using Aspose PDF for Java (v25.1). The issue occurs all the time in our unit tests where we generate pdf document (cover page) using aspose-pdf library.

We are currently using Aspose Total for Java, version 25.1
.
Below is the stack trace for reference:

java.lang.NullPointerException: Cannot invoke "com.aspose.pdf.ParagraphPositioningMode.ordinal()" because the return value of "com.aspose.pdf.FloatingBox.getPositioningMode()" is null
	at com.aspose.pdf.FloatingBox.lI(Unknown Source)
	at com.aspose.pdf.l5l.lI(Unknown Source)
	at com.aspose.pdf.l5l.le(Unknown Source)
	at com.aspose.pdf.Page.lf(Unknown Source)
	at com.aspose.pdf.Page.lf(Unknown Source)
	at com.aspose.pdf.Page.l0t(Unknown Source)
	at com.aspose.pdf.ADocument.processParagraphs(Unknown Source)
	at com.aspose.pdf.Document.processParagraphs(Unknown Source)
	at com.wiley.rex.pdf.pdf.component.CoverPageComponent.processAdditionalPages(CoverPageComponent.java:128)
	at com.wiley.rex.pdf.pdf.component.CoverPageComponent.appendToPage(CoverPageComponent.java:103)
	at com.wiley.rex.pdf.pdf.PdfConverterImpl.createCoverPage(PdfConverterImpl.java:84)
	at com.wiley.rex.pdf.pdf.PdfConverterImpl.saveDocument(PdfConverterImpl.java:110)

Any guidance would be greatly appreciated. Let us know if you need additional details.

Thanks!

@andrey.shaposhnikov

If possible, can you please share your sample code snippet along with sample file and steps to reproduce the issue in our environment? We will test the scenario in our environment and address it accordingly.