We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

NullPointerException when converting html to word

Hi there,


I am encountering a NullPointerException when converting the attached html file into word. Could you please look into it and explain why?

Code used:

com.aspose.words.Document input = new com.aspose.words.Document(inputStream);
input.save(os, SaveFormat.DOCX);


Thanks,
Tien

Hi Tien,

Thanks for your inquiry.

I
have tested the scenario and have managed to reproduce the same issue
at my side. For the sake of correction, I have logged this problem in
our issue tracking system as WORDSNET-10395. I have linked this forum
thread to the same issue and you will be notified via this forum thread
once this issue is resolved.

We apologize for your inconvenience.

While waiting for the fix, I figured out what caused the problem. You can use the following simple example:

Any Caption
anything
If I remove any of the following from the code above, no exception will be thrown:
  1. "border-collapse: collapse;" from table inline style
  2. caption tag
  3. col tag

Hi Tien,

Thanks for sharing the detail of this issue. We
have a good news for you that is WORDSNET-10395 has now been resolved
and its fix will be included in the next version of Aspose.Words
(v14.7.0) which is planned to be released by the end of this month (around July’ 31, 2014). We will inform you via this forum thread as soon as July 2014 release is published.

The issues you have found earlier (filed as WORDSNET-10395) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.