Cevelop / cevelop

The C++ IDE for professional developers
Eclipse Public License 2.0
6 stars 0 forks source link

Elevator: NPE in plugin #29

Open PeterSommerlad opened 5 years ago

PeterSommerlad commented 5 years ago

Expected Behavior

no npe

Actual Behavior

eclipse.buildId=unknown
java.version=9.0.4
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_CH
Framework arguments:  -keyring /Users/sop/.eclipse_keyring
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -data file:/Users/sop/workspace/ -keyring /Users/sop/.eclipse_keyring

org.eclipse.cdt.codan.core
Error
Thu Jul 11 10:33:38 CEST 2019
Internal Error

java.lang.NullPointerException
    at com.cevelop.elevator.ast.analysis.conditions.HasInitializerListConstructor.cotainsInitializerList(HasInitializerListConstructor.java:65)
    at com.cevelop.elevator.ast.analysis.conditions.HasInitializerListConstructor.containsInitializerList(HasInitializerListConstructor.java:44)
    at com.cevelop.elevator.ast.analysis.conditions.HasInitializerListConstructor.hasInitializerListConstructor(HasInitializerListConstructor.java:33)
    at com.cevelop.elevator.ast.analysis.conditions.HasInitializerListConstructor.satifies(HasInitializerListConstructor.java:25)
    at com.cevelop.elevator.ast.analysis.conditions.Or.satifies(Or.java:18)
    at com.cevelop.elevator.ast.analysis.conditions.Or.satifies(Or.java:18)
    at com.cevelop.elevator.ast.analysis.conditions.Or.satifies(Or.java:18)
    at com.cevelop.elevator.ast.analysis.conditions.Or.satifies(Or.java:18)
    at com.cevelop.elevator.ast.analysis.conditions.Or.satifies(Or.java:18)
    at com.cevelop.elevator.ast.analysis.conditions.Not.satifies(Not.java:16)
    at com.cevelop.elevator.ast.analysis.conditions.And.satifies(And.java:18)
    at com.cevelop.elevator.ast.analysis.DeclaratorCollector.visit(DeclaratorCollector.java:49)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTDeclarator.accept(CPPASTDeclarator.java:181)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTSimpleDeclaration.accept(CPPASTSimpleDeclaration.java:112)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTDeclarationStatement.accept(CPPASTDeclarationStatement.java:82)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTCompoundStatement.accept(CPPASTCompoundStatement.java:103)
    at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTFunctionDefinition.accept(CPPASTFunctionDefinition.java:225)
    at org.eclipse.cdt.internal.core.dom.parser.ASTTranslationUnit.accept(ASTTranslationUnit.java:289)
    at com.cevelop.elevator.checker.InitializationChecker.collectAndReportDeclarators(InitializationChecker.java:44)
    at com.cevelop.elevator.checker.InitializationChecker.processAst(InitializationChecker.java:29)
    at ch.hsr.ifs.iltis.cpp.core.wrappers.AbstractIndexAstChecker.processFile(AbstractIndexAstChecker.java:79)
    at ch.hsr.ifs.iltis.cpp.core.wrappers.AbstractIndexAstChecker.processResource(AbstractIndexAstChecker.java:55)
    at org.eclipse.cdt.codan.core.model.AbstractChecker.processResource(AbstractChecker.java:245)
    at org.eclipse.cdt.codan.internal.core.CodanRunner.processResource(CodanRunner.java:97)
    at org.eclipse.cdt.codan.internal.core.CodanRunner.processResource(CodanRunner.java:122)
    at org.eclipse.cdt.codan.internal.core.CodanRunner.processResource(CodanRunner.java:122)
    at org.eclipse.cdt.codan.internal.core.CodanRunner.processResource(CodanRunner.java:62)
    at org.eclipse.cdt.codan.internal.core.CodanBuilder.processResource(CodanBuilder.java:108)
    at org.eclipse.cdt.codan.internal.ui.actions.RunCodeAnalysis$1.run(RunCodeAnalysis.java:63)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)

Cevelop Version, Operating System and Compiler

Cevelop C++ IDE

Version: 1.12.1-201907081203