java.lang.NullPointerException: Attempt to invoke virtual method 'org.firstinspires.ftc.robotcore.external.matrices.VectorF org.firstinspires.ftc.robotcore.external.matrices.OpenGLMatrix.getTranslation()' on a null object reference


Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by user173724
, 9 months ago
Attempt to invoke virtual method 'org.firstinspires.ftc.robotcore.external.matrices.VectorF org.firstinspires.ftc.robotcore.external.matrices.OpenGLMatrix.getTranslation()' on a null object reference

Stack trace

java.lang.NullPointerException: Attempt to invoke virtual method 'org.firstinspires.ftc.robotcore.external.matrices.VectorF org.firstinspires.ftc.robotcore.external.matrices.OpenGLMatrix.getTranslation()' on a null object reference
	at org.firstinspires.ftc.teamcode.VisionBotAutomBlue$override.runOpMode(VisionBotAutomBlue.java:82)
	at org.firstinspires.ftc.teamcode.VisionBotAutomBlue$override.access$dispatch(VisionBotAutomBlue.java)
	at org.firstinspires.ftc.teamcode.VisionBotAutomBlue.runOpMode(VisionBotAutomBlue.java:0)
	at com.qualcomm.robotcore.eventloop.opmode.LinearOpMode$LinearOpModeHelper$1.run(LinearOpMode.java:303)
	at com.qualcomm.robotcore.util.ThreadPool.logThreadLifeCycle(ThreadPool.java:513)
	at com.qualcomm.robotcore.eventloop.opmode.LinearOpMode$LinearOpModeHelper.run(LinearOpMode.java:298)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
	at java.lang.Thread.run(Thread.java:818)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.