Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-6555535

NPE in exec.ConfigEditor.saveConfigFile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jt4.2
    • jt4.1.1
    • tools
    • None
    • b15
    • sparc
    • solaris_1
    • Verified

      To reproduce the problem do the following:

      Bring up javatest with an existing workdirectory
      Bring up Edit Configuration
      Bring up Save As dialog box
      Change the Files of Type to All Files
      Enter a file name
      Click on Save file


      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
              at java.lang.String.endsWith(String.java:1296)
              at com.sun.javatest.exec.ConfigEditor.saveConfigFile(ConfigEditor.java:1356)
              at com.sun.javatest.exec.ConfigEditor.getSaveFile(ConfigEditor.java:374)
              at com.sun.javatest.exec.ConfigEditor.save0(ConfigEditor.java:324)
              at com.sun.javatest.exec.ConfigEditor.saveAs(ConfigEditor.java:316)
              at com.sun.javatest.exec.ConfigEditor.perform(ConfigEditor.java:977)
              at com.sun.javatest.exec.ConfigEditor.access$100(ConfigEditor.java:64)
              at com.sun.javatest.exec.ConfigEditor$Listener.actionPerformed(ConfigEditor.java:1454)
              at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
              at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
              at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
              at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
              at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
              at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
              at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
              at java.awt.Component.processMouseEvent(Component.java:5488)
              at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
              at java.awt.Component.processEvent(Component.java:5253)
              at java.awt.Container.processEvent(Container.java:1966)
              at java.awt.Component.dispatchEventImpl(Component.java:3955)
              at java.awt.Container.dispatchEventImpl(Container.java:2024)
              at java.awt.Component.dispatchEvent(Component.java:3803)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
              at java.awt.Container.dispatchEventImpl(Container.java:2010)
              at java.awt.Window.dispatchEventImpl(Window.java:1766)
              at java.awt.Component.dispatchEvent(Component.java:3803)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
              at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

            bkurotsu Brian Kurotsuchi (Inactive)
            sfarhadsunw Shoushan Farhad (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: