1
0
Fork 0
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:
David McKnight 2010-04-13 15:46:19 +00:00
parent d5b3ec0420
commit f45a84a187

View file

@ -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);