java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • if(lego.getPose != null) is not working
    via Stack Overflow by user173724
    ,
    • 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)
    No Bugmate found.