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 42062 - NPE happens when adding a Database Driver
Summary: NPE happens when adding a Database Driver
Status: VERIFIED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@db
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-16 01:06 UTC by davisn
Modified: 2004-08-13 12:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log file (11.19 KB, text/plain)
2004-04-16 01:07 UTC, davisn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2004-04-16 01:06:51 UTC
Build used:
  AppServer: FCS
  Netbean: 04/07 (release)

STEPS TO REPRODUCE:
1. Install Netbean on a window system Drive C (eg,
c:\sun\NetBeans3.6)
2. Install AppServer on Drive D (eg,
d:\sun\AppServer) 
3. Start Netbean IDE 
4. From Runtime tab > expand to database node >
right-click at the Drivers > select Add Driver
5. From the Add JDBC Driver dialog, click Add
button > select the pbtools.jar from
(d:\sun\AppServer\pointbase\lib) location > click Add
NOTE:
    pbtools.jar was a wrong driver file
   > click Find button
BUG:
     NPE occurs
     exception should be handled gracefully
--------------------------------------------------
java.lang.NullPointerException
	at
javax.swing.plaf.basic.BasicProgressBarUI.sizeChanged(BasicProgressBarUI.java:971)
	at
javax.swing.plaf.basic.BasicProgressBarUI.getBox(BasicProgressBarUI.java:374)
	at
com.sun.java.swing.plaf.windows.WindowsProgressBarUI.paintIndeterminate(WindowsProgressBarUI.java:142)
..................
--------------------------------------------------
Comment 1 davisn 2004-04-16 01:07:31 UTC
Created attachment 14423 [details]
ide.log file
Comment 2 Petr Jiricka 2004-04-16 09:35:06 UTC
Setting the correct component (db).
Comment 3 Radko Najman 2004-07-14 17:42:57 UTC
NPE is thrown from Swing (javax.swing.plaf.basic.BasicProgressBarUI),
it is not DBExplorer issue. I'm not able to reproduce it.
Comment 4 dmladek 2004-07-16 13:34:10 UTC
It didn't happen to me too