mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
[304434] ISourceLookupParticipant.getSourceName(Object) should return null, not empty string
This commit is contained in:
parent
324bc25ac9
commit
8868796244
1 changed files with 6 additions and 1 deletions
|
@ -193,7 +193,12 @@ public class DsfSourceLookupParticipant implements ISourceLookupParticipant {
|
||||||
}};
|
}};
|
||||||
fExecutor.execute(query);
|
fExecutor.execute(query);
|
||||||
try {
|
try {
|
||||||
return query.get();
|
String result = query.get();
|
||||||
|
if ((result != null) && (result.length() == 0)) {
|
||||||
|
// interface javadoc says we should return null
|
||||||
|
result = null;
|
||||||
|
}
|
||||||
|
return result;
|
||||||
} catch (InterruptedException e) { assert false : "Interrupted exception in DSF executor"; //$NON-NLS-1$
|
} catch (InterruptedException e) { assert false : "Interrupted exception in DSF executor"; //$NON-NLS-1$
|
||||||
} catch (ExecutionException e) {
|
} catch (ExecutionException e) {
|
||||||
if (e.getCause() instanceof CoreException) {
|
if (e.getCause() instanceof CoreException) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue