mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
[255699] NPE when filter string doesn't return result in FileServiceSubSystem.list
This commit is contained in:
parent
063b239e0a
commit
d43849229b
1 changed files with 15 additions and 12 deletions
|
@ -15,6 +15,7 @@
|
||||||
* David McKnight (IBM) - [207178] changing list APIs for file service and subsystems
|
* David McKnight (IBM) - [207178] changing list APIs for file service and subsystems
|
||||||
* Martin Oberhuber (Wind River) - [235363][api][breaking] IHostFileToRemoteFileAdapter methods should return AbstractRemoteFile
|
* Martin Oberhuber (Wind River) - [235363][api][breaking] IHostFileToRemoteFileAdapter methods should return AbstractRemoteFile
|
||||||
* David McKnight (IBM) - [244765] Invalid thread access during workbench termination
|
* David McKnight (IBM) - [244765] Invalid thread access during workbench termination
|
||||||
|
* David McKnight (IBM) - [255699] NPE when filter string doesn't return result in FileServiceSubSystem.list
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.subsystems.files.dstore;
|
package org.eclipse.rse.internal.subsystems.files.dstore;
|
||||||
|
@ -64,19 +65,21 @@ public class DStoreFileAdapter implements IHostFileToRemoteFileAdapter
|
||||||
{
|
{
|
||||||
DStoreHostFile node = (DStoreHostFile)nodes[i];
|
DStoreHostFile node = (DStoreHostFile)nodes[i];
|
||||||
|
|
||||||
DStoreFile lfile = null;
|
if (node != null){
|
||||||
|
DStoreFile lfile = null;
|
||||||
if (node instanceof DStoreVirtualHostFile)
|
|
||||||
{
|
if (node instanceof DStoreVirtualHostFile)
|
||||||
lfile = new DStoreVirtualFile(ss, context, parent, (DStoreVirtualHostFile) node);
|
{
|
||||||
|
lfile = new DStoreVirtualFile(ss, context, parent, (DStoreVirtualHostFile) node);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lfile = new DStoreFile(ss, context, parent, node);
|
||||||
|
}
|
||||||
|
|
||||||
|
results.add(lfile);
|
||||||
|
ss.cacheRemoteFile(lfile);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
lfile = new DStoreFile(ss, context, parent, node);
|
|
||||||
}
|
|
||||||
|
|
||||||
results.add(lfile);
|
|
||||||
ss.cacheRemoteFile(lfile);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (DStoreFile[]) results.toArray(new DStoreFile[results.size()]);
|
return (DStoreFile[]) results.toArray(new DStoreFile[results.size()]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue