#333 MS SQLServer Plugin throws NPE

2.1final
closed-fixed
Rob Manning
5
2006-01-12
2006-01-12
Rob Manning
No

I see the following exception whenever I have a non-MS
SQL Server session open and I attempt to access the
SQL Server menu:

java.lang.NullPointerException
at
net.sourceforge.squirrel_sql.plugins.mssql.MssqlPlugin.iterateIndexes(MssqlPlugin.java:303)
at
net.sourceforge.squirrel_sql.plugins.mssql.MssqlPlugin.access$700(MssqlPlugin.java:59)
at
net.sourceforge.squirrel_sql.plugins.mssql.MssqlPlugin$4.menuSelected(MssqlPlugin.java:281)
at javax.swing.JMenu.fireMenuSelected(Unknown
Source)
at
javax.swing.JMenu$MenuChangeListener.stateChanged(Unknown
Source)
at
javax.swing.DefaultButtonModel.fireStateChanged(Unknown
Source)
at
javax.swing.DefaultButtonModel.setSelected(Unknown Source)
at javax.swing.JMenu.setSelected(Unknown Source)
at
javax.swing.JMenu.menuSelectionChanged(Unknown Source)
at
javax.swing.MenuSelectionManager.setSelectedPath(Unknown
Source)
at
javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(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.trackMouseEnterExit(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-01-12

    • status: open --> closed-fixed