mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 15:23:59 +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:
parent
e2103b07ad
commit
d02d7eb162
2 changed files with 9 additions and 0 deletions
|
@ -392,6 +392,11 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
|
||||||
throws java.lang.reflect.InvocationTargetException,
|
throws java.lang.reflect.InvocationTargetException,
|
||||||
java.lang.InterruptedException
|
java.lang.InterruptedException
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!isConnected()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
Object[] children = null;
|
Object[] children = null;
|
||||||
Vector vChildren = new Vector();
|
Vector vChildren = new Vector();
|
||||||
Vector vMessages = new Vector();
|
Vector vMessages = new Vector();
|
||||||
|
|
|
@ -123,6 +123,10 @@ public abstract class RemoteProcessSubSystemImpl extends SubSystem implements
|
||||||
throws InvocationTargetException,
|
throws InvocationTargetException,
|
||||||
InterruptedException
|
InterruptedException
|
||||||
{
|
{
|
||||||
|
if (!isConnected()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
HostProcessFilterImpl rpf = new HostProcessFilterImpl(filterString);
|
HostProcessFilterImpl rpf = new HostProcessFilterImpl(filterString);
|
||||||
IRemoteProcessContext context = new RemoteProcessContext(this, null, rpf);
|
IRemoteProcessContext context = new RemoteProcessContext(this, null, rpf);
|
||||||
IRemoteProcess[] ps = null;
|
IRemoteProcess[] ps = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue