mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 22:22:11 +02:00
307495 - fixed NPE
This commit is contained in:
parent
d0592246c4
commit
077c8e6e45
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,9 @@ public class NonVirtualDestructor extends AbstractIndexAstChecker {
|
||||||
if (destName != null) {
|
if (destName != null) {
|
||||||
if (destName instanceof ICPPInternalBinding) {
|
if (destName instanceof ICPPInternalBinding) {
|
||||||
ICPPInternalBinding bin = (ICPPInternalBinding) destName;
|
ICPPInternalBinding bin = (ICPPInternalBinding) destName;
|
||||||
ast = bin.getDeclarations()[0];
|
IASTNode[] decls = bin.getDeclarations();
|
||||||
|
if (decls!=null && decls.length>0)
|
||||||
|
ast = decls[0];
|
||||||
}
|
}
|
||||||
mess = MessageFormat
|
mess = MessageFormat
|
||||||
.format(
|
.format(
|
||||||
|
|
Loading…
Add table
Reference in a new issue