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:
parent
210443c47a
commit
a9ca46d100
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue