#360 NPE from attempt to open non-existant file

2.2rc1
closed-fixed
Rob Manning
Core (461)
5
2006-03-21
2006-03-21
Rob Manning
No

Attempt to open a file that doesn't exist and get the
following exception:

java.lang.NullPointerException
at
net.sourceforge.squirrel_sql.client.session.FileManager.loadScript(FileManager.java:127)
at
net.sourceforge.squirrel_sql.client.session.FileManager.open(FileManager.java:84)
at
net.sourceforge.squirrel_sql.client.session.SQLPanelAPI.fileOpen(SQLPanelAPI.java:196)
at
net.sourceforge.squirrel_sql.client.session.action.FileOpenAction.actionPerformed(FileOpenAction.java:21)
at
javax.swing.AbstractButton.fireActionPerformed(Unknown
Source)
at
javax.swing.AbstractButton$Handler.actionPerformed(Unknown
Source)
at
javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at
javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at
java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown
Source)
at
javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
Source)
at
java.awt.LightweightDispatcher.processMouseEvent(Unknown
Source)
at
java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)
at java.awt.Container.dispatchEventImpl(Unknown
Source)
at java.awt.Window.dispatchEventImpl(Unknown
Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown
Source)
at
net.sourceforge.squirrel_sql.client.Application$1.dispatchEvent(Application.java:172)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Discussion

  • Rob Manning
    Rob Manning
    2006-03-21

    Logged In: YES
    user_id=1287991

    Fixed in CVS.

     
  • Rob Manning
    Rob Manning
    2006-03-21

    • status: open --> closed-fixed