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 213668 - NullPointerException at org.netbeans.modules.db.metadata.model.jdbc.JDBCTable.createJDBCForeignKeyColumn
Summary: NullPointerException at org.netbeans.modules.db.metadata.model.jdbc.JDBCTable...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-06 11:40 UTC by miibx5
Modified: 2012-06-14 06:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 159754


Attachments
stacktrace (3.36 KB, text/plain)
2012-06-06 11:40 UTC, miibx5
Details

Note You need to log in before you can comment on or make changes to this bug.
Description miibx5 2012-06-06 11:40:44 UTC
Build: NetBeans IDE 7.2 Beta (Build 201205031832)
VM: OpenJDK 64-Bit Server VM, 22.0-b10, OpenJDK Runtime Environment, 1.7.0_03-b147
OS: Linux

User Comments:
rweaver: Deleting a table through the services browser (mysql)




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.db.metadata.model.jdbc.JDBCTable.createJDBCForeignKeyColumn(JDBCTable.java:328)
   at org.netbeans.modules.db.metadata.model.jdbc.JDBCTable.createForeignKeys(JDBCTable.java:286)
   at org.netbeans.modules.db.metadata.model.jdbc.JDBCTable.initForeignKeys(JDBCTable.java:428)
   at org.netbeans.modules.db.metadata.model.jdbc.JDBCTable.getForeignKeys(JDBCTable.java:121)
   at org.netbeans.modules.db.metadata.model.api.Table.getForeignKeys(Table.java:121)
   at org.netbeans.modules.db.explorer.node.ForeignKeyNodeProvider$1.run(ForeignKeyNodeProvider.java:108)
Comment 1 miibx5 2012-06-06 11:40:49 UTC
Created attachment 120423 [details]
stacktrace
Comment 2 Jaroslav Havlin 2012-06-12 08:42:24 UTC
http://hg.netbeans.org/core-main/rev/38987a2c31a4
Exception handling and logging improved.
The next time the bug is reproduced, please attach info in the IDE Log. Thank you.
Comment 3 Quality Engineering 2012-06-14 06:09:21 UTC
Integrated into 'main-golden', will be available in build *201206140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/38987a2c31a4
User: Jaroslav Havlin <jhavlin@netbeans.org>
Log: #213668: NPE at JDBCTable.createJDBCForeignKeyColumn