HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › NullPointerException in a table/disp:none/float combination

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27101

    Hello,
    similarly to the ClassCastException and the endless loop, a somewhat similar combination leads to a NPE with 3.9.9fx1.
    The code is:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <body>
    <table>
    <tr><td>
    <a style="display: block;">
    <span style="float: left;display: inline-block;"></span>
    </a>
    </td></tr>
    
    <tr><td>
    <div  style="display: none;">
    <table>
    <tr><td>
    <a style="float: left;"><span style="display: block;"></span></a>
    <a style="float: right;"><span style="display: block;"></span></a>
    </td></tr>
    </table>
    </div>
    
    </td></tr>
    </table>
    </body>
    </html>

    and the exception

    java.lang.NullPointerException
    at org.zefer.html.doc.o.o00000(Unknown Source)
    at org.zefer.html.doc.r.ôO0000(Unknown Source)
    at org.zefer.html.doc.q.o00000(Unknown Source)
    at org.zefer.html.doc.q.void(Unknown Source)
    at org.zefer.html.doc.o.o00000(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.db.o00000(Unknown Source)
    at org.zefer.html.doc.view.d.o00000(Unknown Source)
    at org.zefer.html.doc.db.o00000(Unknown Source)
    at org.zefer.html.doc.Document.paint(Unknown Source)
    at org.zefer.pd4ml.PD4ML.o00000(Unknown Source)
    at org.zefer.pd4ml.PD4ML.render(Unknown Source)
    ...

    Please let us know if we can supply any additional information.

    Thank you + best regards,
    Viktor

    #29936

    The issue is reproduced. We’ll begin to work on it next week.

    #29937

    v399fx2 should fix the issue.

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.