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

Get "java.lang.NullPointerException: bar" randomly under Solaris/Motif

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.1
    • 1.0
    • client-libs
    • None
    • 1.1
    • sparc
    • solaris_2.4
    • Not verified

      Lately when running HotJava I get this message early on:

      java.lang.NullPointerException: bar
              at sun.awt.motif.X11Graphics.<init>(X11Graphics.java:45)
              at sun.awt.motif.MComponentPeer.getGraphics(MComponentPeer.java:154)
              at sun.awt.motif.MComponentPeer.handleExpose(MComponentPeer.java:259)
              at java.lang.Thread.run(Thread.java)

      There are no apparent ill effects, though. I notice a NPS: foo earlier in the source code (awt_Graphics.c) -- both should be changed to something sensible.

      The description field as copied from bug report 1237514 follows:


      When running the basher you often see this exception.
      This can probably be avoided.

      java.lang.NullPointerException: bar
              at sun.awt.motif.X11Graphics.<init>(X11Graphics.java:45)
              at sun.awt.motif.MComponentPeer.getGraphics(MComponentPeer.java:154)
              at sun.awt.motif.MComponentPeer.handleExpose(MComponentPeer.java:259)
              at java.lang.Thread.run(Thread.java)

            amfowler Anne Fowler (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: