Project

General

Profile

Bug #3406

Changing delimiters on ConfigureDataSource doesn't work

Added by Ryan McFall over 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
client
Target version:
Start date:
06/20/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3406

Description

Here's a stack trace

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0
at edu.msu.first.dataimport.gui.ConfigureDataSource$8.valueChanged(ConfigureDataSource.java:511)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(Unknown Source)
at javax.swing.DefaultListSelectionModel.clearSelection(Unknown Source)
at javax.swing.JTable.clearSelection(Unknown Source)
at javax.swing.JTable.clearSelectionAndLeadAnchor(Unknown Source)
at javax.swing.JTable.tableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
at javax.swing.table.AbstractTableModel.fireTableStructureChanged(Unknown Source)
at edu.msu.first.dataimport.DataSourcePreviewPanel.propertyChange(DataSourcePreviewPanel.java:430)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at edu.msu.first.dataimport.DelimitedDataSource.setDelimiter(DelimitedDataSource.java:43)
at edu.msu.first.dataimport.gui.ConfigureDataSource$1.actionPerformed(ConfigureDataSource.java:395)

History

#1 Updated by Ryan McFall over 10 years ago

Resubmit after fire

#2 Updated by Ryan McFall over 10 years ago

This was due to code that was attempting to handle the change in the selected rows/columns in the table, which was being cleared when the delimiter was changed.

Adding a check for an empty selection fixed this problem.

#3 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 3406

Also available in: Atom PDF