1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 16:15:25 +02:00

Bug 158530: NullPointerException if dstore fails to connect. This applies to both remote file and processes subsystems. Although the user does not see any messages as a result, we should not get null pointer exceptions. Solution is to handle the case of not being connected when resolving filters.

This commit is contained in:
Kushal Munir 2006-10-04 14:39:45 +00:00
parent e2103b07ad
commit d02d7eb162
2 changed files with 9 additions and 0 deletions

View file

@ -392,6 +392,11 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
throws java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
{
if (!isConnected()) {
return null;
}
Object[] children = null;
Vector vChildren = new Vector();
Vector vMessages = new Vector();

View file

@ -123,6 +123,10 @@ public abstract class RemoteProcessSubSystemImpl extends SubSystem implements
throws InvocationTargetException,
InterruptedException
{
if (!isConnected()) {
return null;
}
HostProcessFilterImpl rpf = new HostProcessFilterImpl(filterString);
IRemoteProcessContext context = new RemoteProcessContext(this, null, rpf);
IRemoteProcess[] ps = null;