Start a new topic

NullPointerException when running SQL with the first line commented

[This topic is migrated from our old forums. The original author name has been removed]

Given a query which starts with a comment in the very first line of SQL Commander, e.g. \-- line 1 select 1; , placing the cursor at any position in the first line and trying "Execute Current" results in an error. An internal error occurred in: java.lang.NullPointerException The error may have affected the application state. Please notify vendor. Stack Trace: java.lang.NullPointerException at com.onseven.dbvis.c.A.B.Ă(Z:1011) at com.onseven.dbvis.E.B.Ď(Z:1172) at com.onseven.dbvis.E.B.ʄ(Z:178) at com.onseven.dbvis.E.B$8.execute(Z:2196) at se.pureit.swing.Q.F.actionPerformed(Z:1875) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1639) at javax.swing.JComponent.processKeyBinding(JComponent.java:2851) at javax.swing.JComponent.processKeyBindings(JComponent.java:2897) at javax.swing.JComponent.processKeyEvent(JComponent.java:2814) at com.jidesoft.editor.CodeEditor.processKeyEvent(Unknown Source) at com.onseven.dbvis.c.A.B$A.processKeyEvent(Z:835) at java.awt.Component.processEvent(Component.java:6065) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4651) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4481) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1850) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:712) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:990) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:855) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:676) at java.awt.Component.dispatchEventImpl(Component.java:4523) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Window.dispatchEventImpl(Window.java:2478) at java.awt.Component.dispatchEvent(Component.java:4481) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643) at java.awt.EventQueue.access$000(EventQueue.java:84) at java.awt.EventQueue$1.run(EventQueue.java:602) at java.awt.EventQueue$1.run(EventQueue.java:600) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$2.run(EventQueue.java:616) at java.awt.EventQueue$2.run(EventQueue.java:614) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:613) at com.onseven.dbvis.L.A.V.dispatchEvent(Z:483) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) System Information: Product: DbVisualizer Personal 8.0.8 Build: #1745 (2012/02/14 10:52) Java VM: Java HotSpot(TM) 64-Bit Server VM Java Version: 1.6.0_26 Java Vendor: Sun Microsystems Inc. OS Name: Linux OS Arch: amd64 OS Version: 2.6.35-32-generic Edited by: sdemchenko on Feb 27, 2012 6:20 PM

[This reply is migrated from our old forums.]

Re: NullPointerException when running SQL with the first line commented
Hi, Thanks for reporting this. I've found what causes this and will fix it for the next maintenance release. Best Regards, Hans
[This reply is migrated from our old forums.]

Re: NullPointerException when running SQL with the first line commented
Hi, This is now fixed in the 8.0.9 version. Regards Roger
[This reply is migrated from our old forums. The original author name has been removed]

Re: NullPointerException when running SQL with the first line commented
Hi Roger, Works perfectly, many thanks! Best regards, Stas