This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 6.7 (Build 200906261335) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 User Comments: GUEST: I have wanted to view via alt tab hints field name in a database: $sql="INSERT INTO $table (id, ) VALUES(NULL);UPDATE $table SET $fields WHERE id = LAST_INSERT_ID()"; I have used alt-tab combination on marked place: $sql="INSERT INTO $table (id, -> HERE <- GUEST: i was writing a sql command. GUEST: Trying to invoke SQL code completion for fields from a non existing table. hari_seldon: Using MySQL-CodeCompletion Stacktrace: java.lang.NullPointerException at org.netbeans.modules.db.sql.editor.completion.SQLCompletionItems.addColumns(SQLCompletionItems.java:154) at org.netbeans.modules.db.sql.editor.completion.SQLCompletionItems.addColumns(SQLCompletionItems.java:150) at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.insideColumns(SQLCompletionQuery.java:263) at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.completeInsert(SQLCompletionQuery.java:243) at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery.doQuery(SQLCompletionQuery.java:185) at org.netbeans.modules.db.sql.editor.completion.SQLCompletionQuery$1.run(SQLCompletionQuery.java:150)
Created attachment 84453 [details] stacktrace
Confirmed the bug in Dev build.
core-main/rev/97a63f8a830f
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/97a63f8a830f User: Jiri Rechtacek <jrechtacek@netbeans.org> Log: #168236: NullPointerException at org.netbeans.modules.db.sql.editor.completion.SQLCompletionItems.addColumns