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:
parent
f4ecd61137
commit
41740da7ba
2 changed files with 12 additions and 6 deletions
|
@ -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 )
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue