java.lang.NullPointerException

JDK Bug System | Aruna Samji | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    SunToolkit.setZOrder() throws java.lang.NullPointerException for the PIT build on RedHat Linux 7.2. This is regression from Mantis b09. Java version: java version "1.4.2-internal" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-internal-bchristi_05_dec_2002_13_39) Java HotSpot(TM) Client VM (build 1.4.2-beta-b09, mixed mode) Jdk Build location: /net/sqindia.india/export/disk02/awt/PITBUILDS/PIT-MANTIS-DEC-5 or /net/jano/export/disk26/awt/PIT-MANTIS-DEC-5/builds Steps to reproduce: 1. Compile and run the above program for PIT build. 2. Throws NullPointerException. ================================================================================ java.lang.NullPointerException at sun.java2d.SunGraphics2D.revalidateAll(SunGraphics2D.java:2086) at sun.java2d.SunGraphics2D.getCompClip(SunGraphics2D.java:439) at sun.java2d.SunGraphics2D.invalidateClip(SunGraphics2D.java:1640) at sun.java2d.SunGraphics2D.setClip(SunGraphics2D.java:1746) at sun.java2d.SunGraphics2D.setClip(SunGraphics2D.java:1737) at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4804) at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4748) at javax.swing.JComponent._paintImmediately(JComponent.java:4692) at javax.swing.JComponent.paintImmediately(JComponent.java:4495) at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:449) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) ================================================================================ This exception is not thrown for Mantis b09.

    JDK Bug System | 1 decade ago | Aruna Samji
    java.lang.NullPointerException
  2. 0

    NullPointerException without referencing any object

    Stack Overflow | 4 years ago | tejoe
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Why can't you call initCause with an ExceptionInInitializerError?

    Stack Overflow | 3 years ago | aliteralmind
    java.lang.NullPointerException: null!
  5. 0

    Why am I getting NullPointerException when running this code?

    Stack Overflow | 3 years ago
    java.lang.NullPointerException

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at sun.java2d.SunGraphics2D.revalidateAll()
    2. Java RT
      SunGraphics2D.fillRect
      1. sun.java2d.SunGraphics2D.revalidateAll(SunGraphics2D.java:2086)
      2. sun.java2d.SunGraphics2D.getCompClip(SunGraphics2D.java:439)
      3. sun.awt.X11Renderer.fillRect(X11Renderer.java:131)
      4. sun.java2d.pipe.ValidatePipe.fillRect(ValidatePipe.java:46)
      5. sun.java2d.SunGraphics2D.fillRect(SunGraphics2D.java:2065)
      5 frames
    3. Unknown
      Test.main
      1. Test.main(Test.java:8)
      1 frame