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 155830 - NullPointerException in FilteredTableDataProvider
Summary: NullPointerException in FilteredTableDataProvider
Status: RESOLVED INCOMPLETE
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
: 155831 155832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-19 11:11 UTC by zelazon
Modified: 2009-01-08 00:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zelazon 2008-12-19 11:11:09 UTC
NullPointerException in class com.sun.data.provider.impl.FilteredTableDataProvider (line 355) "allRows.add(rows[i]);",
something set allRows to null and then, this method produce a crash. To reproduce it, create a new page and add a table.
Bind the table to a FilteredTableDataProvider. Bind FilteredTableDataProvider to a two elements:
CachedRowSetDataProvider and BasicTableDataFilter. Bind a BasicTableDataFilter to a FilterCriteria array (and
CachedRowSetDataProvider to a CachedRowSetXImpl; this is done automatically drag and drop a table from a database
connection to the page table component). Add some criteria (RegexFilterCriteria by example) to this array. And then, run
the application and... crash!!!! Also it occurs in NetBeans 6.1 and 6.5
Comment 1 Peter Zavadsky 2009-01-08 00:38:00 UTC
This seems could have happened only via accessing the same instance from more threads. 
However it seems that all the implementations of the data providers are not thread safe.

Could you, please, provide the stack trace to see at least one of the threads. Thanks.
Comment 2 Peter Zavadsky 2009-01-08 00:38:58 UTC
*** Issue 155831 has been marked as a duplicate of this issue. ***
Comment 3 Peter Zavadsky 2009-01-08 00:39:24 UTC
*** Issue 155832 has been marked as a duplicate of this issue. ***