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 78891 - NPE when invoking Add Column on Oracle
Summary: NPE when invoking Add Column on Oracle
Status: RESOLVED DUPLICATE of bug 75616
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-22 10:32 UTC by Pavel Rehak
Modified: 2006-07-03 16:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
mentioned exception (388 bytes, text/plain)
2006-06-22 10:32 UTC, Pavel Rehak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Rehak 2006-06-22 10:32:06 UTC
Product Version         = NetBeans 5.5 Dev (Build 200606090200)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor; Home  = 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-b02;
Sun Microsystems Inc.; F:\Java\jdk1.5.0_07\jre
  System Locale; Encoding = ja_JP (nb); MS932
--
ím using pseudolocalized nb 5.5 with japanise locales
added oracle jdbc/odbc driver to netbeans
connected to 
url:   jdbc:oracle:thin:@qa-linux-s3:1521:newdb
login :     scott
password:    luke
encoding - AL32UTF8
in db explorer i expanded db_connection | Tables and selected
some table with multibyte char within its name
executed command add column on this table -> exception thrown
Comment 1 Pavel Rehak 2006-06-22 10:32:25 UTC
Created attachment 31309 [details]
mentioned exception
Comment 2 Andrei Badea 2006-06-22 16:11:05 UTC
Very likely duplicate of issue 75616. The table indexes are retrieved, which
throws an exception (the same that is thrown in 75616), which causes the
intialization of a field to be skipped. 

Not marking as duplicate because error handling should be improved. Should
display the error to the user instead of silently swallowing it.
Comment 3 Andrei Badea 2006-07-03 16:10:25 UTC
Fixed the exception handling, now a dialog informing about the error is
displayed. Closing as duplicate.

Checking in src/org/netbeans/modules/db/explorer/actions/AddColumnAction.java;
/cvs/db/src/org/netbeans/modules/db/explorer/actions/AddColumnAction.java,v  <--
 AddColumnAction.java
new revision: 1.17.26.2; previous revision: 1.17.26.1
done
Checking in src/org/netbeans/modules/db/explorer/dlg/AddTableColumnDialog.java;
/cvs/db/src/org/netbeans/modules/db/explorer/dlg/AddTableColumnDialog.java,v 
<--  AddTableColumnDialog.java
new revision: 1.34.6.1.2.2; previous revision: 1.34.6.1.2.1
done


*** This issue has been marked as a duplicate of 75616 ***