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

Stack Overflow | user3417052 | 5 months ago
  1. 0

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

    Stack Overflow | 5 months ago | user3417052
    java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.SurfaceTexture.updateTexImage()' on a null object reference
  2. 0
    Use 'dialog' to access views from custom_layout layout.
  3. 0
    Initialize the variable before calling a method on it.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    The resource was accessed after it was dismissed.
  6. 0
    The parsed JSON does not contains the requested field.

    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 '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