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

NullPointerException at sun.java2d.loops.RasterOutputManager.copyArea(RasterOutp

    Details

    • Subcomponent:
      2d
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      Name: dm26566 Date: 10/15/98


      I have a program (too large to send, but call me: x51703) that gets several of these
      dumps from time to time: It usually happens when attemting to scroll a JTable.

      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at sun.java2d.loops.RasterOutputManager.copyArea(RasterOutputManager.java:575)
              at sun.java2d.SunGraphics2D.copyArea(SunGraphics2D.java:1514)
              at javax.swing.JViewport.paint(JViewport.java:366)
              at javax.swing.JComponent.paintChildren(JComponent.java:388)
              at javax.swing.JComponent.paint(JComponent.java:550)
              at javax.swing.JComponent.paintChildren(JComponent.java:388)
              at javax.swing.JComponent.paint(JComponent.java:550)
              at javax.swing.JComponent.paintChildren(JComponent.java:388)
              at javax.swing.JComponent.paint(JComponent.java:550)
              at javax.swing.JComponent.paintChildren(JComponent.java:388)
              at javax.swing.JComponent.paint(JComponent.java:550)
              at javax.swing.JLayeredPane.paint(JLayeredPane.java:547)
              at javax.swing.JComponent.paintChildren(JComponent.java:388)
              at javax.swing.JComponent.paint(JComponent.java:535)
              at java.awt.Container.paint(Container.java:770)
              at javax.swing.JApplet.update(JApplet.java:148)
              at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:248)
              at java.awt.Component.dispatchEventImpl(Component.java:2429)
              at java.awt.Container.dispatchEventImpl(Container.java:1032)
              at java.awt.Component.dispatchEvent(Component.java:2289)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:258)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:68)

      The offending line of code is:
      /usr/build/promoted/jdk1.2/JDK1.2_fcs_N/src/share/classes/sun/java2d/loops/RasterOutputManager.java

              // If there is a forward overlap of the memory area, copy to an
              // intermediate buffer first
              if (
      ---> (dest2D instanceof BufferedImageGraphics2D
                      && ((dx >= x) && (dx <= (x+w)) && (dy >= y) && (dy <= (y+h))))
                  || dest2D.getDevID().equals("WGraphics")
              ) {

      me-thinks that somehow/sometimes dest2D is not set.
      (Review ID: 40527)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dmcduffisunw Dale Mcduffie (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: