1
0
Fork 0
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:
Alain Magloire 2004-08-13 02:51:38 +00:00
parent 026137a049
commit 64f93294af

View file

@ -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.