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 107812

Summary: IllegalArgumentException when showing null row
Product: db Reporter: Radim Roska <rroska>
Component: SQL EditorAssignee: Andrei Badea <abadea>
Status: RESOLVED FIXED    
Severity: blocker CC: dsimonek
Priority: P3 Keywords: GTK, L&F
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Radim Roska 2007-06-22 12:44:31 UTC
Product Version: NetBeans IDE Dev (Build 200706190000, C/C++ Pack 20070619) 
Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 
System: Linux version 2.6.20-15-generic running on i386; UTF-8; en_US (nb)

1. Netbeans running on gtk look&feel.
2. connect to travel database in services view
3. execute 
select "ARRTIME" from "TRAVEL"."FLIGHT"
query 
4. scroll down in result 
=>IllegalArgumentException exception occurs...when displaying row with flightid=42

( select "ARRTIME" from "TRAVEL"."FLIGHT" where flightid=42 )

this row contains null value.
Comment 1 Andrei Badea 2007-06-28 17:24:05 UTC
JDK bug in the GTK L&F, will file a bug and then work around it, it is quite simple.
Comment 2 Andrei Badea 2007-06-29 17:13:47 UTC
Fixed.

Checking in src/org/netbeans/modules/db/sql/execute/ui/SQLResultPanel.java;
/cvs/db/core/src/org/netbeans/modules/db/sql/execute/ui/SQLResultPanel.java,v  <--  SQLResultPanel.java
new revision: 1.9; previous revision: 1.8
done