#815 NPE at Copy as SQL INSERT-VALUES

3.0.3
closed-fixed
Core (461)
5
2010-02-21
2010-01-07
Anonymous
No

This function doesn't work for me, it reports an NPE:

java.lang.NullPointerException
at net.sourceforge.squirrel_sql.fw.gui.TablePopupMenu.getStatementSeparatorFromModel(TablePopupMenu.java:237)
at net.sourceforge.squirrel_sql.fw.gui.TablePopupMenu.access$200(TablePopupMenu.java:36)
at net.sourceforge.squirrel_sql.fw.gui.TablePopupMenu$CopyInsertStatementAction.actionPerformed(TablePopupMenu.java:350)
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.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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:195)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)

My squirrel is the 3.0.3 and it's connected to a sybase ase server through jTDS driver

Discussion

  • Rob Manning

    Rob Manning - 2010-02-21

    Pretty easy to reproduce. From SQL tab, execute select statement which performs a join on two tables. Then select any of the rows in the result tab, and access this function from the table popup menu. The problem is that we don't allow editing the result of a join query, and so the information needed to create the insert statements isn't available. So the fix is to not allow this function in this context.

     
  • Rob Manning

    Rob Manning - 2010-02-21
    • labels: 336290 --> Core
    • milestone: --> 3.0.3
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks