mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Don't error when stack service in unavailable (#61)
The only time the stack service is unavailable is: 1. Stack service hasn't been started yet 2. Stack service has been shutdown 3. Stack service never gets created All of these cases are configuration error, except (2). In (2) the stack service isn't available to do source lookup, so instead of an error, simply return no file (aka null) Fixes #53
This commit is contained in:
parent
4a8cf1c6e9
commit
c84e47a711
1 changed files with 1 additions and 3 deletions
|
@ -190,9 +190,7 @@ public class DsfSourceLookupParticipant extends AbstractSourceLookupParticipant
|
|||
|
||||
IStack stackService = fServicesTracker.getService(IStack.class);
|
||||
if (stackService == null) {
|
||||
rm.setStatus(new Status(IStatus.ERROR, DsfPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_HANDLE,
|
||||
"Stack data not available", null)); //$NON-NLS-1$
|
||||
rm.done();
|
||||
rm.done((String) null);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue