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 )
|
if( b == null || b instanceof IProblemBinding )
|
||||||
++issues[i];
|
++issues[i];
|
||||||
IScope scope = CPPVisitor.getContainingScope( names[j] );
|
IScope scope = CPPVisitor.getContainingScope( names[j] );
|
||||||
try {
|
if( scope != null )
|
||||||
scope.flushCache();
|
{
|
||||||
} catch (DOMException e) {
|
try {
|
||||||
|
scope.flushCache();
|
||||||
|
} catch (DOMException e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch( Throwable t )
|
catch( Throwable t )
|
||||||
|
|
|
@ -73,9 +73,12 @@ public abstract class CPPASTAmbiguity extends CPPASTNode {
|
||||||
}
|
}
|
||||||
if (names.length > 0) {
|
if (names.length > 0) {
|
||||||
IScope scope = CPPVisitor.getContainingScope(names[0]);
|
IScope scope = CPPVisitor.getContainingScope(names[0]);
|
||||||
try {
|
if( scope != null )
|
||||||
scope.flushCache();
|
{
|
||||||
} catch (DOMException de) {}
|
try {
|
||||||
|
scope.flushCache();
|
||||||
|
} catch (DOMException de) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int bestIndex = 0;
|
int bestIndex = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue