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

api/javax_swing/PopupFactory/index.html#Ctor[PopupFactory2002] fails with NPE

XMLWordPrintable

    • b55
    • x86
    • windows_xp

      Failing test:
      api/javax_swing/PopupFactory/index.html#Ctor[PopupFactory2002]

      Platform: Windows
      Test fails - JDK7 b32, b33
      Test passes - JDK6u10

      The following line causes NPE:

              PopupFactory.getSharedInstance().getPopup(new Canvas(), new Canvas(), 10, 10);

      Exception in thread "main" java.lang.NullPointerException
      at javax.swing.PopupFactory$ContainerPopup.fitsOnScreen(PopupFactory.java:561)
      at javax.swing.PopupFactory$MediumWeightPopup.getMediumWeightPopup(PopupFactory.java:818)
      at javax.swing.PopupFactory.getMediumWeightPopup(PopupFactory.java:256)
      at javax.swing.PopupFactory.getPopup(PopupFactory.java:227)
      at javax.swing.PopupFactory.getPopup(PopupFactory.java:170)

            peterz Peter Zhelezniakov
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: