vjbollavarapu / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

NullPointerException in Java2DOutputDevice.paintReplacedElement #248

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Version:

flyingsaucer-core-9.0.7

Repro:

<html>
<head></head>
<body>
  <input>
</body>
</html>

Result:

java.lang.NullPointerException
    at org.xhtmlrenderer.swing.Java2DOutputDevice.paintReplacedElement(Java2DOutputDevice.java:185)
    at org.xhtmlrenderer.layout.Layer.paintReplacedElement(Layer.java:540)
    at org.xhtmlrenderer.layout.Layer.paintReplacedElements(Layer.java:497)
    at org.xhtmlrenderer.layout.Layer.paintAsLayer(Layer.java:471)
    at org.xhtmlrenderer.render.BlockBox.paintInline(BlockBox.java:265)
    at org.xhtmlrenderer.layout.Layer.paintInlineContent(Layer.java:274)
    at org.xhtmlrenderer.layout.Layer.paint(Layer.java:332)
    at org.xhtmlrenderer.layout.Layer.paintLayers(Layer.java:165)
    at org.xhtmlrenderer.layout.Layer.paint(Layer.java:337)
    at org.xhtmlrenderer.swing.Java2DRenderer.getImage(Java2DRenderer.java:296)

Original issue reported on code.google.com by kevin.krouse on 20 Oct 2014 at 8:22