NullPointerException when loading fonts

Hi,


We are running into an issue with Aspose.Slides for Java 16.6.0. The exception stack trace is listed below,

Caused by: java.lang.NullPointerException
at com.aspose.slides.p6a2feef8.pd8700cbd.h.if(Unknown Source)
at com.aspose.slides.FontsLoader.loadExternalFonts(Unknown Source)
at com.atlassian.plugins.conversion.AsposeUtils.configureFonts(AsposeUtils.java:118)

The environment is Windows 2008 server, 32bit, Service Pack 2.

Could you please shed light on this issue?

Regards,

Feng

HI Sascha,


I have observed your comments. I request to you please share the source presentation and source code to further investigate the issue on our end.

Best Regard,

Hi Muhammad,


The exception was thrown out at the stage of loading fonts, before any file process, hence there is no source presentation.

As of the source code, only the API - FontsLoader.loadExternalFonts() - is invoked. What I’d like to know is when this API would throw out NullPointException?

Regards,

Feng

HI Sascha,


I have observed your comments. The issue is likely due to in access to the font folder. Can you please verify on your end of the folder C:\Windows\Fonts are you able to access them on your current set. If you are able to access them then tell us.

Best Regard,

Thanks Muhammad.


The codes were running with administrator group, so it has the access to that folder. Are there any other causes?

Regards,

Feng

HI Sascha,


I have observed your comments. It looks likes problem is in your code or permissions. Can you please share the source code so that we may further investigate issue on our end.

Best Regard,

Thanks Muhammad.


We have figured out the cause - an empty line was generated in the middle of the output from environment variables, and Aspose.Slides was not able to handle this scenario. After we removed the empty line, this issue could be resolved.

Regards,

Feng

Hi Feng,

It’s good to know that you have been able to rectify the issue on your end. Please share if we may be of any further to help you in this regard.

Many Thanks,