Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8117239

NullPointerException when rendering image

    Details

      Description

      The attached program loads an image in the background
      and is then supposed to render it when it is fully loaded.
      This worked until recently but now results in a NPE
      with the latest build of JavaFX (2.2 b11).

      Progress: 10.0%
      Progress: 21.0%
      Progress: 32.0%
      Progress: 43.0%
      Progress: 54.0%
      Progress: 65.0%
      Progress: 76.0%
      Progress: 86.0%
      Progress: 97.0%
      Progress: 100.0%
      java.lang.NullPointerException
      at com.sun.prism.impl.BaseGraphics.drawTextureVO(BaseGraphics.java:418)
      at com.sun.prism.impl.BaseGraphics.drawTexture(BaseGraphics.java:351)
      at com.sun.prism.image.Coords.draw(Coords.java:29)
      at com.sun.prism.image.CompoundCoords.draw(CompoundCoords.java:83)
      at com.sun.javafx.sg.prism.NGImageView.renderContent(NGImageView.java:127)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:187)
      at com.sun.javafx.sg.prism.NGImageView.doRender(NGImageView.java:97)
      at com.sun.javafx.sg.prism.NGImageView.doRender(NGImageView.java:20)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1133)
      at com.sun.javafx.sg.prism.NGGroup.renderContent(NGGroup.java:204)
      at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:420)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:187)
      at com.sun.javafx.sg.prism.NGNode.doRender(NGNode.java:39)
      at com.sun.javafx.sg.BaseNode.render(BaseNode.java:1133)
      at com.sun.javafx.tk.quantum.ViewPainter.doPaint(ViewPainter.java:117)
      at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(AbstractPainter.java:181)
      at com.sun.javafx.tk.quantum.PresentingPainter.run(PresentingPainter.java:73)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
      at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
      at com.sun.prism.render.RenderJob.run(RenderJob.java:37)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:96)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                dpausjfx Dr. Michael Paus (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: