mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Check for null
This commit is contained in:
parent
026137a049
commit
64f93294af
1 changed files with 4 additions and 1 deletions
|
@ -192,7 +192,10 @@ public class AddIncludeOnSelectionAction extends Action implements IUpdate {
|
||||||
IFunctionSummary fs = findContribution(name);
|
IFunctionSummary fs = findContribution(name);
|
||||||
if (fs != null) {
|
if (fs != null) {
|
||||||
fRequiredIncludes = fs.getIncludes();
|
fRequiredIncludes = fs.getIncludes();
|
||||||
fUsings = new String[] {fs.getNamespace()};
|
String ns = fs.getNamespace();
|
||||||
|
if (ns != null && ns.length() > 0) {
|
||||||
|
fUsings = new String[] {fs.getNamespace()};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try the type caching.
|
// Try the type caching.
|
||||||
|
|
Loading…
Add table
Reference in a new issue