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

Stack Overflow | user3417052 | 8 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

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

    Stack Overflow | 8 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