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

com.sun.java.swing.plaf.gtk.GTKStyle.getInsets(GTKStyle.java:263)

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 6u1
    • Fix Version/s: None
    • Component/s: client-libs

      Description

      We are facing this exception (see attachment) reproducibly in our automated tests.
      The test case opens Mobility Security Manager dialog and than closes it repeatedly.

      java.lang.NullPointerException
      at org.netbeans.modules.mobility.project.ui.customizer.NewConfigurationPanel.getName(NewConfigurationPanel.java:157)
      at com.sun.java.swing.plaf.gtk.GTKStyle.getInsets(GTKStyle.java:263)
      at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:876)
      at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:252)
      at javax.swing.plaf.synth.SynthPanelUI.updateStyle(SynthPanelUI.java:70)
      at javax.swing.plaf.synth.SynthPanelUI.installDefaults(SynthPanelUI.java:57)
      at javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:39)
      at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:37)
      at javax.swing.JComponent.setUI(JComponent.java:668)
      at javax.swing.JPanel.setUI(JPanel.java:136)
      at javax.swing.JPanel.updateUI(JPanel.java:109)
      at javax.swing.JPanel.<init>(JPanel.java:69)
      at javax.swing.JPanel.<init>(JPanel.java:92)
      at javax.swing.JPanel.<init>(JPanel.java:100)
      at org.netbeans.modules.mobility.project.ui.customizer.NewConfigurationPanel.<init>(NewConfigurationPanel.java:74)

      ------
      evaluation from Mobility Pack team:
      NewConfigurationPanel.getName() is called before NewConfigurationPanel
      constructor is finished.

      I can fix it on our side but this issue should be also reported to
      com.sun.java.swing.plaf.gtk.GTKStyle owner.
      Swing should not call getters of an instance before even parent constructor is finished.

      originally reported as http://www.netbeans.org/issues/show_bug.cgi?id=103973

        Attachments

          Activity

            People

            • Assignee:
              peterz Peter Zhelezniakov (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: