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

[212938] Fix for NPE as a result of a detail pane job returning null status.

This commit is contained in:
Pawel Piech 2007-12-19 19:45:04 +00:00
parent 210443c47a
commit a9ca46d100

View file

@ -394,9 +394,9 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
dmc = DMContexts.getAncestorOfType(vmcdmc, IModuleDMContext.class);
}
if (dmc == null) return null;
if (dmc == null) return Status.OK_STATUS;
DsfSession session = DsfSession.getSession(dmc.getSessionId());
if (session == null) return null;
if (session == null) return Status.OK_STATUS;
/*
* Create the query to write the value to the service. Note: no need to
@ -415,9 +415,9 @@ public class ModuleDetailPane extends AbstractDetailPane implements IAdaptable,
detailComputed(getModuleDetail((IModuleDMData) query.get()));
} catch (InterruptedException e) {
assert false;
return null;
return Status.OK_STATUS;
} catch (ExecutionException e) {
return null;
return Status.OK_STATUS;
}
return Status.OK_STATUS;
}