1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixed Bug 102730 - [NPE] in CPPASTAmbiguity#accept(CPPASTAmbiguity) line: 77 when indexing wxWidgets

This commit is contained in:
John Camelon 2005-07-05 14:19:31 +00:00
parent f4ecd61137
commit 41740da7ba
2 changed files with 12 additions and 6 deletions

View file

@ -72,9 +72,12 @@ public abstract class CASTAmbiguity extends CASTNode {
if( b == null || b instanceof IProblemBinding )
++issues[i];
IScope scope = CPPVisitor.getContainingScope( names[j] );
try {
scope.flushCache();
} catch (DOMException e) {
if( scope != null )
{
try {
scope.flushCache();
} catch (DOMException e) {
}
}
}
catch( Throwable t )

View file

@ -73,9 +73,12 @@ public abstract class CPPASTAmbiguity extends CPPASTNode {
}
if (names.length > 0) {
IScope scope = CPPVisitor.getContainingScope(names[0]);
try {
scope.flushCache();
} catch (DOMException de) {}
if( scope != null )
{
try {
scope.flushCache();
} catch (DOMException de) {}
}
}
}
int bestIndex = 0;