java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.SurfaceTexture.updateTexImage()' on a null object reference

Stack Overflow | user3417052 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    My app always crashes when starting a second activity within an onClick method

    Stack Overflow | 7 months ago | user3417052
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.SurfaceTexture.updateTexImage()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'void android.graphics.SurfaceTexture.updateTexImage()' on a null object reference

      at com.example.opengltest.DrawingActivity.onNewFrame()
    2. com.example.opengltest
      DrawingActivity.onNewFrame
      1. com.example.opengltest.DrawingActivity.onNewFrame(DrawingActivity.java:526)
      1 frame
    3. com.google.vrtoolkit
      CardboardView$RendererHelper.onDrawFrame
      1. com.google.vrtoolkit.cardboard.CardboardView$StereoRendererHelper.onDrawFrame(CardboardView.java:289)
      2. com.google.vrtoolkit.cardboard.CardboardView$RendererHelper.onDrawFrame(CardboardView.java:598)
      2 frames
    4. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1531)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
      2 frames