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

NullPointerException when using ToolTips

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs



      Name: rk38400 Date: 05/05/98


      Swing 1.0.2, JDK 1.1.6

      Tooltips generate a null pointer exception as given below. These
      tooltips worked correctly under swing 1.0.0, JDK 1.1.6. Just dragging
      the mouse over the various components generates exceptions. Below is
      the first exception generated on each platform.

      Source code is available upon request. However this seems pretty
      generic and should be easy to reproduce without my involved applications.

      I even tried the trick of disabling lightweight tool tips as described
      in the CHANGES.txt document. This had no effect. I still get
      exceptions.

      NT:
      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at com.sun.java.swing.ToolTipManager$JPanelPopup.show(ToolTipManager.java:449)
              at com.sun.java.swing.ToolTipManager.showTipWindow(ToolTipManager.java:169)
              at com.sun.java.swing.ToolTipManager.mouseEntered(ToolTipManager.java:243)
              at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:246)
              at java.awt.Component.processMouseEvent(Component.java:2293)
              at java.awt.Component.processEvent(Component.java:2129)
              at java.awt.Container.processEvent(Container.java:894)
              at java.awt.Component.dispatchEventImpl(Component.java:1764)
              at java.awt.Container.dispatchEventImpl(Container.java:939)
              at java.awt.Component.dispatchEvent(Component.java:1704)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:1548)
              at java.awt.LightweightDispatcher.setMouseTarget(Container.java:1515)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1392)
              at java.awt.Container.dispatchEventImpl(Container.java:926)
              at java.awt.Component.dispatchEvent(Component.java:1704)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:63)

      Solaris:
      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at com.sun.java.swing.ToolTipManager$JPanelPopup.show(ToolTipManager.java:449)
              at com.sun.java.swing.ToolTipManager.showTipWindow(ToolTipManager.java:169)
              at com.sun.java.swing.ToolTipManager$insideTimerAction.actionPerformed(ToolTipManager.java:358)
              at com.sun.java.swing.Timer.fireActionPerformed(Timer.java:134)
              at com.sun.java.swing.Timer$DoPostEvent.run(Timer.java:100)
              at com.sun.java.swing.SystemEventQueueUtilities.processRunnableEvent(SystemEventQueueUtilities.java:193)
              at com.sun.java.swing.SystemEventQueueUtilities.access$0(SystemEventQueueUtilities.java:189)
              at com.sun.java.swing.SystemEventQueueUtilities$RunnableTarget.processEvent(SystemEventQueueUtilities.java:230)
              at java.awt.Component.dispatchEventImpl(Component.java:1781)
              at java.awt.Component.dispatchEvent(Component.java:1708)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:81)
      (Review ID: 29704)
      ======================================================================

            rschiavisunw Richard Schiavi (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: