mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
[308770] [dstore] Remote Search using old server fails with NPE
This commit is contained in:
parent
d5b3ec0420
commit
f45a84a187
1 changed files with 9 additions and 4 deletions
|
@ -62,6 +62,7 @@
|
||||||
* David McKnight (IBM) - [284056] Sychronize Cache causes the UI to hang with no way out
|
* David McKnight (IBM) - [284056] Sychronize Cache causes the UI to hang with no way out
|
||||||
* David McKnight (IBM) - [284420] nullprogressmonitor is needed
|
* David McKnight (IBM) - [284420] nullprogressmonitor is needed
|
||||||
* David McKnight (IBM) - [298440] jar files in a directory can't be pasted to another system properly
|
* David McKnight (IBM) - [298440] jar files in a directory can't be pasted to another system properly
|
||||||
|
* David McKnight (IBM) - [308770] [dstore] Remote Search using old server fails with NPE
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.services.dstore.files;
|
package org.eclipse.rse.internal.services.dstore.files;
|
||||||
|
@ -1244,11 +1245,15 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
|
||||||
if (isOldIBMMiner()){
|
if (isOldIBMMiner()){
|
||||||
// only accepts filters for file queries
|
// only accepts filters for file queries
|
||||||
if (!de.getType().equals(IUniversalDataStoreConstants.UNIVERSAL_FILTER_DESCRIPTOR)){
|
if (!de.getType().equals(IUniversalDataStoreConstants.UNIVERSAL_FILTER_DESCRIPTOR)){
|
||||||
StringBuffer buf = new StringBuffer(remoteParent);
|
StringBuffer buf = new StringBuffer();
|
||||||
String sep = getSeparator(remoteParent);
|
if (remoteParent != null){
|
||||||
if (sep.length()>0 && !remoteParent.endsWith(sep)) {
|
buf.append(remoteParent);
|
||||||
buf.append(sep);
|
String sep = getSeparator(remoteParent);
|
||||||
|
if (sep.length()>0 && !remoteParent.endsWith(sep)) {
|
||||||
|
buf.append(sep);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.append(name);
|
buf.append(name);
|
||||||
String fullPath = buf.toString();
|
String fullPath = buf.toString();
|
||||||
de.setAttribute(DE.A_NAME, fullPath);
|
de.setAttribute(DE.A_NAME, fullPath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue