Free Support Forum - aspose.com

Regression in bullet list with custom picture bullet images

Hi,

I found what seems to be a regression when using custom images for bullet lists.

The same error was reported by me quite some time here:

It also was fixed in one version but seems one of the recent versions introduced the bug again.

I would like to send you a simple standalone program demonstrating the issue, but extracting that from our software took me a lot of time when I did it for the first report. Could you please check the original thread or your internal bug tracker if you still have access to the demo program - unfortunately I don’t have it anymore.

Anyway here is the stacktrace I get when using custom bullet icon images using Aspose-Words for Java 18.4:

Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
    at com.aspose.words.zzZMG.zzX(Unknown Source)
    at com.aspose.words.zzZMG.zzY(Unknown Source)
    at com.aspose.words.zzYXM.getSize(Unknown Source)
    at com.aspose.words.zzYXJ.getSize(Unknown Source)
    at com.aspose.words.zzYXM.zzZhK(Unknown Source)
    at com.aspose.words.zzYXJ.getWidth(Unknown Source)
    at com.aspose.words.zzYXN.zzrR(Unknown Source)
    at com.aspose.words.zzYYK.getWidth(Unknown Source)
    at com.aspose.words.zzZLW.zzVY(Unknown Source)
    at com.aspose.words.zzZLW.zzVZ(Unknown Source)
    at com.aspose.words.zzZLR.zzW(Unknown Source)
    at com.aspose.words.zzZLZ.zzS(Unknown Source)
    at com.aspose.words.zzZLY.zzZ(Unknown Source)
    at com.aspose.words.zzVZ.zzZ(Unknown Source)
    at com.aspose.words.zzYZ0.zzZ(Unknown Source)
    at com.aspose.words.zzXK.zztj(Unknown Source)
    at com.aspose.words.zzXK.zzY(Unknown Source)
    at com.aspose.words.zzZ85.zzZuX(Unknown Source)
    at com.aspose.words.zzZ85.zzS(Unknown Source)
    at com.aspose.words.zzZ7I.zzJ(Unknown Source)
    at com.aspose.words.zzYX1.zzn(Unknown Source)
    at com.aspose.words.zz9A.zzJ(Unknown Source)
    at com.aspose.words.zz9B.zz5c(Unknown Source)
    at com.aspose.words.zzZN0.zzZ(Unknown Source)
    at com.aspose.words.Document.updatePageLayout(Unknown Source)
    at com.aspose.words.zz4M.perform(Unknown Source)
    at com.aspose.words.zz4N.zzM3(Unknown Source)
    at com.aspose.words.zz1N.zzYY(Unknown Source)
    at com.aspose.words.zz1N.zzZ(Unknown Source)
    at com.aspose.words.zz1N.zzZG(Unknown Source)
    at com.aspose.words.Range.updateFields(Unknown Source)
    at com.aspose.words.Document.updateFields(Unknown Source)
    at com.k15t.scroll.words.exporter.DocxExporter.finalProcessing(DocxExporter.java:103)
    ... 54 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
    at com.aspose.words.zzYZO.zzZ(Unknown Source)
    at com.aspose.words.zzZMG.zzX(Unknown Source)
    ... 86 more
Caused by: java.lang.NullPointerException
    at com.aspose.words.zzZ8.zzY(Unknown Source)
    at com.aspose.words.zzZ8.zzZ(Unknown Source)
    at com.aspose.words.zzYZO.zzZ(Unknown Source)
    at com.aspose.words.zzYZO.zzZ(Unknown Source)
    ... 87 more

@jensk15t,

Thanks for your inquiry. We have tested the scenario using the code example shared in your old thread and have not found the shared exception. We have attached the code example that is used to test this scenario. Code.zip (2.1 KB)

Thanks for the code @tahir.manzoor
You are right - I could not reproduce the issue with this demo program and the latest version of Aspose Words.
I’ll produce a new one and will attach it to this thread in a few days.

@jensk15t,

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. Thanks for your cooperation.

Hi,
Regarding this issue, I’ve created a simple java application with the latest version of Aspose Words (18.4).
This issue could be reproduced when the updateFields method is called on Document after building a list with custom bullet image. I attached the program here to be used in your test scenario.

tasklistdemo.zip (31.2 KB)

Here is the stack trace I get when running the program:

Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
	at com.aspose.words.zzZMG.zzX(Unknown Source)
	at com.aspose.words.zzZMG.zzY(Unknown Source)
	at com.aspose.words.zzYXM.getSize(Unknown Source)
	at com.aspose.words.zzYXJ.getSize(Unknown Source)
	at com.aspose.words.zzYXM.zzZhK(Unknown Source)
	at com.aspose.words.zzYXJ.getWidth(Unknown Source)
	at com.aspose.words.zzYXN.zzrR(Unknown Source)
	at com.aspose.words.zzYYK.getWidth(Unknown Source)
	at com.aspose.words.zzZLW.zzVY(Unknown Source)
	at com.aspose.words.zzZLW.zzVZ(Unknown Source)
	at com.aspose.words.zzZLR.zzW(Unknown Source)
	at com.aspose.words.zzZLZ.zzS(Unknown Source)
	at com.aspose.words.zzZLY.zzZ(Unknown Source)
	at com.aspose.words.zzVZ.zzZ(Unknown Source)
	at com.aspose.words.zzYZ0.zzZ(Unknown Source)
	at com.aspose.words.zzXK.zztj(Unknown Source)
	at com.aspose.words.zzXK.zzY(Unknown Source)
	at com.aspose.words.zzZ85.zzZuX(Unknown Source)
	at com.aspose.words.zzZ85.zzS(Unknown Source)
	at com.aspose.words.zzZ7I.zzJ(Unknown Source)
	at com.aspose.words.zzYX1.zzn(Unknown Source)
	at com.aspose.words.zz9A.zzJ(Unknown Source)
	at com.aspose.words.zz9B.zz5c(Unknown Source)
	at com.aspose.words.zzZN0.zzZ(Unknown Source)
	at com.aspose.words.Document.updatePageLayout(Unknown Source)
	at com.aspose.words.zz4M.perform(Unknown Source)
	at com.aspose.words.zz4N.zzM3(Unknown Source)
	at com.aspose.words.zz1N.zzYY(Unknown Source)
	at com.aspose.words.zz1N.zzZ(Unknown Source)
	at com.aspose.words.zz1N.zzZG(Unknown Source)
	at com.aspose.words.Range.updateFields(Unknown Source)
	at com.aspose.words.Document.updateFields(Unknown Source)
	at com.k15t.test.aspose.words.AsposeListIssue.updateAndSaveDoc(AsposeListIssue.java:76)
	at com.k15t.test.aspose.words.AsposeListIssue.main(AsposeListIssue.java:89)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at com.aspose.words.zzYZO.zzZ(Unknown Source)
	at com.aspose.words.zzZMG.zzX(Unknown Source)
	... 33 more
Caused by: java.lang.NullPointerException
	at com.aspose.words.zzZ8.zzY(Unknown Source)
	at com.aspose.words.zzZ8.zzZ(Unknown Source)
	at com.aspose.words.zzYZO.zzZ(Unknown Source)
	at com.aspose.words.zzYZO.zzZ(Unknown Source)
	... 34 more

@behrouz,

Thanks for sharing the detail. 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-16807. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir,

thanks for accepting this as a bug. Will this be included in one of the upcoming releases? This error is blocking us from using a recent version of Aspose Words. We’re still on 15.11 and would like to upgrade.

Thanks,
Jens

@jensk15t,

Thanks for your inquiry. Currently, your issue is pending for analysis. Once we complete the analysis of your issue, we will then be able to provide you an estimate. We apologize for your inconvenience.

Hi @tahir.manzoor,

did you find time for completing the analysis yet?
More an more of our customers report issues with SVG issues that are solved in recent Aspose.Words versions but we cannot upgrade because of this bullet icon issue.

Thanks!

@jensk15t,

Thanks for your inquiry. This issue has been resolved and its fix will be available in next version of Aspose.Words for Java i.e. 18.8. This release will be published at the start of next month (August 2018). Thanks for your patience.

Great news. Thanks for the update @tahir.manzoor!

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