Skip to content

Space in path prevents navigation in Filebrowser

Bug Description

Space in path prevents navigation in Filebrowser

Steps to reproduce

Create a directory with a space in the name, e.g. directory with spaces, from Filebrowser click on the created path text to enter the directory, then try to go up one level by clicking on the curved arrow with .. text. Nothing happens.

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 4
	at org.scilab.modules.ui_data.filebrowser.ScilabFileBrowserModel.getColumnClass(Unknown Source)
	at org.scilab.modules.ui_data.filebrowser.ScilabTreeTableModelAdapter.getColumnClass(Unknown Source)
	at java.desktop/javax.swing.JTable.getColumnClass(Unknown Source)
	at org.scilab.modules.ui_data.filebrowser.SwingScilabTreeTable.getEditingRow(Unknown Source)
	at java.desktop/javax.swing.JTable$AccessibleJTable.getAccessibleChild(Unknown Source)
	at java.desktop/javax.swing.JTable$AccessibleJTable.getAccessibleAt(Unknown Source)
	at java.desktop/javax.swing.JTable$AccessibleJTable.valueChanged(Unknown Source)
(...)
Edited by Stéphane MOTTELET