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

Stack Overflow | user173724 | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    if(lego.getPose != null) is not working

    Stack Overflow | 2 months ago | 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
  2. 0

    ConceptI2cAddressChange crashes writing error message (and doesn't work)

    GitHub | 2 months ago | slylockfox
    java.util.IllegalFormatConversionException: %x can't format com.qualcomm.robotcore.hardware.I2cAddr arguments C_CONCURRENT freed 1962K, 45% free 6216K/11164K, paused 3ms+4ms, total 58ms
  3. 0

    if(pose != null && img.getPixels() !=null) crashes program when run

    Stack Overflow | 2 months ago | user173724
    android.app.IntentReceiverLeaked: Activity org.firstinspires.ftc.robotcontroller.internal.FtcRobotControllerActivity has leaked IntentReceiver com.qualcomm.analytics.Analytics@167c670 that was originally registered here. Are you missing a call to unregisterReceiver()?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Creating new Mat variable crashes android app

    Stack Overflow | 2 months ago | Coppell FIRST
    android.app.IntentReceiverLeaked: Activity org.firstinspires.ftc.robotcontroller.internal.FtcRobotControllerActivity has leaked IntentReceiver com.qualcomm.analytics.Analytics@f31dd7d that was originally registered here. Are you missing a call to unregisterReceiver()?
  6. 0

    GitHub comment 93#253669322

    GitHub | 5 months ago | tommy-mor
    java.lang.UnsatisfiedLinkError: Couldn't load opencv_java3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.qualcomm.ftcrobotcontroller-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.qualcomm.ftcrobotcontroller-2, /vendor/lib, /system/lib]]]: findLibrary returned null

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. org.firstinspires.ftc
      VisionBotAutomBlue.runOpMode
      1. org.firstinspires.ftc.teamcode.VisionBotAutomBlue$override.runOpMode(VisionBotAutomBlue.java:82)
      2. org.firstinspires.ftc.teamcode.VisionBotAutomBlue$override.access$dispatch(VisionBotAutomBlue.java)
      3. org.firstinspires.ftc.teamcode.VisionBotAutomBlue.runOpMode(VisionBotAutomBlue.java:0)
      3 frames
    3. com.qualcomm.robotcore
      LinearOpMode$LinearOpModeHelper.run
      1. com.qualcomm.robotcore.eventloop.opmode.LinearOpMode$LinearOpModeHelper$1.run(LinearOpMode.java:303)
      2. com.qualcomm.robotcore.util.ThreadPool.logThreadLifeCycle(ThreadPool.java:513)
      3. com.qualcomm.robotcore.eventloop.opmode.LinearOpMode$LinearOpModeHelper.run(LinearOpMode.java:298)
      3 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      3. java.lang.Thread.run(Thread.java:818)
      3 frames