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.

Bug 168236 - NullPointerException at org.netbeans.modules.db.sql.editor.completion.SQLCompletionItems.addColumns
Summary: NullPointerException at org.netbeans.modules.db.sql.editor.completion.SQLComp...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 15:50 UTC by hari_seldon
Modified: 2009-07-23 07:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 150444


Attachments
stacktrace (1.83 KB, text/plain)
2009-07-07 15:50 UTC, hari_seldon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hari_seldon 2009-07-07 15:50:04 UTC
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)
Comment 1 hari_seldon 2009-07-07 15:50:15 UTC
Created attachment 84453 [details]
stacktrace
Comment 2 Jiri Rechtacek 2009-07-22 14:08:58 UTC
Confirmed the bug in Dev build.
Comment 3 Jiri Rechtacek 2009-07-22 16:20:41 UTC
core-main/rev/97a63f8a830f
Comment 4 Quality Engineering 2009-07-23 07:49:51 UTC
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