mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[197784] need to check if last separator at 0 as well
This commit is contained in:
parent
64a20e4300
commit
d20722d64a
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@
|
|||
* David Dykstal (IBM) - [160776] format file size according to client system conventions and locale
|
||||
* David McKnight (IBM) - [197089] Need to set the filter when there is no separator in filter string
|
||||
* David McKnight (IBM) - [196662] hasChildren() should return false when the file doesn't exist
|
||||
* David McKnight (IBM) - [197784] Need to check if last separator is at 0
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.view;
|
||||
|
@ -602,7 +603,7 @@ public class SystemViewRemoteFileAdapter
|
|||
String separator = PathUtility.getSeparator(filterString);
|
||||
|
||||
int sepIndex = filterString.lastIndexOf(separator);
|
||||
if (sepIndex > 0)
|
||||
if (sepIndex >= 0)
|
||||
{
|
||||
filter = filterString.substring(sepIndex + 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue