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 257025 - AIOOBE when filtering threads in Methods
Summary: AIOOBE when filtering threads in Methods
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-07 15:55 UTC by Jiri Sedlacek
Modified: 2015-12-12 02:44 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 Jiri Sedlacek 2015-12-07 15:55:15 UTC
Open the threads selector in a Methods session, click the filter icon and type a filter. Eventually an AIOOBE is thrown:

java.lang.ArrayIndexOutOfBoundsException: -1
	at javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.java:518)
	at javax.swing.JTable.convertRowIndexToModel(JTable.java:2642)
	at javax.swing.JTable.getValueAt(JTable.java:2717)
	at javax.swing.JTable.prepareRenderer(JTable.java:5706)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTable.prepareRenderer(ProfilerTable.java:234)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTable.getStringValue(ProfilerTable.java:374)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTable$11.toString(ProfilerTable.java:822)
	at javax.swing.table.TableRowSorter$TableRowSorterModelWrapper.getStringValueAt(TableRowSorter.java:276)
	at javax.swing.DefaultRowSorter$FilterEntry.getStringValue(DefaultRowSorter.java:1352)
	at org.netbeans.lib.profiler.ui.cpu.ThreadsSelector$2$1.include(ThreadsSelector.java:181)
	at javax.swing.DefaultRowSorter.include(DefaultRowSorter.java:931)
	at javax.swing.DefaultRowSorter.initializeFilteredMapping(DefaultRowSorter.java:640)
	at javax.swing.DefaultRowSorter.sort(DefaultRowSorter.java:599)
	at javax.swing.DefaultRowSorter.setRowFilter(DefaultRowSorter.java:424)
	at org.netbeans.lib.profiler.ui.swing.ProfilerTable.setRowFilter(ProfilerTable.java:877)
	at org.netbeans.lib.profiler.ui.cpu.ThreadsSelector$2.filterChanged(ThreadsSelector.java:179)
	at org.netbeans.lib.profiler.ui.swing.FilteringToolbar$2.changed(FilteringToolbar.java:96)
	at org.netbeans.lib.profiler.ui.swing.FilteringToolbar$2.insertUpdate(FilteringToolbar.java:93)
        [...]
Comment 1 Jiri Sedlacek 2015-12-08 11:52:13 UTC
Fixed by http://hg.netbeans.org/profiler-main/rev/5e2638275b82.
Comment 2 Quality Engineering 2015-12-12 02:44:18 UTC
Integrated into 'main-silver', will be available in build *201512120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5e2638275b82
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #257025 - fixed getting string from model value, also speeds up searching and filtering tables