Fehlschlag
tests.wurstscript.tests.ClassesTests.NPE
Fehlermeldung
org.testng.TestException: Expected exception of type class de.peeeq.wurstio.jassinterpreter.DebugPrintError but got at [NPE, line 8]: Null pointer dereference Stack trace: at : NPE, line 8 ... when calling init_test() in NPE:1 ... when calling main() in <source of NoExpr not found>:1
Stacktrace
org.testng.TestException: Expected exception of type class de.peeeq.wurstio.jassinterpreter.DebugPrintError but got at [NPE, line 8]: Null pointer dereference Stack trace: at : NPE, line 8 ... when calling init_test() in NPE:1 ... when calling main() in <source of NoExpr not found>:1 at org.testng.internal.ExpectedExceptionsHolder.wrongException(ExpectedExceptionsHolder.java:68) at org.testng.internal.Invoker.considerExceptions(Invoker.java:1120) at org.testng.internal.Invoker.invokeMethod(Invoker.java:603) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:707) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:979) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.privateRun(TestRunner.java:648) at org.testng.TestRunner.run(TestRunner.java:505) at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) at org.testng.SuiteRunner.run(SuiteRunner.java:364) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1187) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1183) at org.testng.TestNG.runSuitesLocally(TestNG.java:1116) at org.testng.TestNG.runSuites(TestNG.java:1028) at org.testng.TestNG.run(TestNG.java:996) at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.runTests(TestNGTestClassProcessor.java:133) at org.gradle.api.internal.tasks.testing.testng.TestNGTestClassProcessor.stop(TestNGTestClassProcessor.java:83) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy2.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:120) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: at [NPE, line 8]: Null pointer dereference Stack trace: at : NPE, line 8 ... when calling init_test() in NPE:1 ... when calling main() in <source of NoExpr not found>:1 at de.peeeq.wurstscript.intermediatelang.interpreter.ProgramState.assertAllocated(ProgramState.java:102) at de.peeeq.wurstscript.intermediatelang.interpreter.EvaluateExpr.eval(EvaluateExpr.java:159) at de.peeeq.wurstscript.jassIm.ImMethodCallImpl.evaluate(ImMethodCallImpl.java:270) at de.peeeq.wurstscript.intermediatelang.interpreter.EvaluateExpr.eval(EvaluateExpr.java:57) at de.peeeq.wurstscript.jassIm.ImOperatorCallImpl.evaluate(ImOperatorCallImpl.java:227) at de.peeeq.wurstscript.intermediatelang.interpreter.RunStatement.run(RunStatement.java:26) at de.peeeq.wurstscript.jassIm.ImIfImpl.runStatement(ImIfImpl.java:198) at de.peeeq.wurstscript.intermediatelang.interpreter.RunStatement.run(RunStatement.java:151) at de.peeeq.wurstscript.jassIm.ImStmtsImpl.runStatements(ImStmtsImpl.java:84) at de.peeeq.wurstscript.intermediatelang.interpreter.ILInterpreter.runFunc(ILInterpreter.java:90) at de.peeeq.wurstscript.intermediatelang.interpreter.EvaluateExpr.evaluateFunc(EvaluateExpr.java:41) at de.peeeq.wurstscript.intermediatelang.interpreter.EvaluateExpr.eval(EvaluateExpr.java:32) at de.peeeq.wurstscript.jassIm.ImFunctionCallImpl.evaluate(ImFunctionCallImpl.java:264) at de.peeeq.wurstscript.intermediatelang.interpreter.RunStatement.run(RunStatement.java:15) at de.peeeq.wurstscript.jassIm.ImFunctionCallImpl.runStatement(ImFunctionCallImpl.java:260) at de.peeeq.wurstscript.intermediatelang.interpreter.RunStatement.run(RunStatement.java:151) at de.peeeq.wurstscript.jassIm.ImStmtsImpl.runStatements(ImStmtsImpl.java:84) at de.peeeq.wurstscript.intermediatelang.interpreter.ILInterpreter.runFunc(ILInterpreter.java:90) at de.peeeq.wurstscript.intermediatelang.interpreter.ILInterpreter.executeFunction(ILInterpreter.java:183) at tests.wurstscript.tests.WurstScriptTest.executeImProg(WurstScriptTest.java:386) at tests.wurstscript.tests.WurstScriptTest.translateAndTest(WurstScriptTest.java:320) at tests.wurstscript.tests.WurstScriptTest.testWithoutInliningAndOptimization(WurstScriptTest.java:234) at tests.wurstscript.tests.WurstScriptTest.testScript(WurstScriptTest.java:192) at tests.wurstscript.tests.WurstScriptTest.testScript(WurstScriptTest.java:161) at tests.wurstscript.tests.WurstScriptTest.testAssertOk(WurstScriptTest.java:108) at tests.wurstscript.tests.WurstScriptTest.testAssertOkLines(WurstScriptTest.java:96) at tests.wurstscript.tests.ClassesTests.NPE(ClassesTests.java:546) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) at org.testng.internal.Invoker.invokeMethod(Invoker.java:571) ... 42 more
Standard Fehler (STDERR)
ExprMemberMethodDot(, ExprVarAccess(, Identifier(, a)), Identifier(, foo), TypeExprList(), Arguments()) ExprMemberMethodDot(, ExprVarAccess(, Identifier(, a)), Identifier(, foo), TypeExprList(), Arguments()) ExprMemberMethodDot(, ExprVarAccess(, Identifier(, a)), Identifier(, foo), TypeExprList(), Arguments()) ExprMemberMethodDot(, ExprVarAccess(, Identifier(, a)), Identifier(, foo), TypeExprList(), Arguments())