mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Fix NPE.
This commit is contained in:
parent
077917c1f5
commit
a31dcc6d91
1 changed files with 12 additions and 7 deletions
|
@ -60,13 +60,18 @@ public class CSourceNotFoundDescriptionFactory implements IAdapterFactory {
|
|||
tracker.dispose();
|
||||
}
|
||||
};
|
||||
DsfSession.getSession(frameDMC.getSessionId()).getExecutor().execute(query);
|
||||
DsfSession session = DsfSession.getSession(frameDMC.getSessionId());
|
||||
if (session != null && session.getExecutor() != null)
|
||||
{
|
||||
session.getExecutor().execute(query);
|
||||
try {
|
||||
IFrameDMData dmData = query.get();
|
||||
return getFrameDescription(dmData);
|
||||
} catch (Exception e) {
|
||||
return frameDMC.toString();
|
||||
}
|
||||
}
|
||||
return frameDMC.toString();
|
||||
}};
|
||||
}
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue