Menu

#42 Open file null pointer exception

Version:_0.4.2
open
Other (23)
5
2010-03-02
2010-02-04
No

I am trying to open a saved packjacket project file and I receive the following exception:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at packjacket.gui.GUIUtils.open(GUIUtils.java)
at packjacket.gui.GUIUtils.open(GUIUtils.java)
at packjacket.gui.MainFrame.open(MainFrame.java)
at packjacket.gui.MainFrame$5.actionPerformed(MainFrame.java)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:137)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6348)

I have attached the project file.
Thank you.

Discussion

  • Jordan Lefebvre

    Jordan Lefebvre - 2010-02-04
     
  • Jordan Lefebvre

    Jordan Lefebvre - 2010-02-04

    Here is a more detailed stack trace:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at packjacket.gui.GUIUtils.open(GUIUtils.java:201)
    at packjacket.gui.GUIUtils.open(GUIUtils.java:250)
    at packjacket.gui.MainFrame.open(MainFrame.java:469)
    at packjacket.gui.MainFrame$5.actionPerformed(MainFrame.java:191)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)

    It appears the the "File f = chooser.getSelectedFile();" returns null and blows up checking the files existence.

     
  • Manodasan Wignarajah

    We are currently trying to reproduce the bug. Before we continue proceeding we would like to know what operating system are you using, what version of JAVA do you have installed and does it happen always when you try to open any pjc file or is the problem specific to this pjc file. Thank you for your help, as we try to reproduce the bug.

     
  • Manodasan Wignarajah

    • assigned_to: nobody --> manodasan
     

Anonymous
Anonymous

Add attachments
Cancel