java.lang.NullPointerException: Attempt to invoke virtual method 'boolean uk.co.senab.photoview.PhotoViewAttacher.setDisplayMatrix(android.graphics.Matrix)' on a null object reference

GitHub | hamberluo | 7 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

    NullPointerException in PhotoView attacher with version 1.2.7

    GitHub | 7 months ago | hamberluo
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean uk.co.senab.photoview.PhotoViewAttacher.setDisplayMatrix(android.graphics.Matrix)' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'boolean uk.co.senab.photoview.PhotoViewAttacher.setDisplayMatrix(android.graphics.Matrix)' on a null object reference

      at uk.co.senab.photoview.PhotoView.setDisplayMatrix()
    2. uk.co.senab
      PhotoView.setDisplayMatrix
      1. uk.co.senab.photoview.PhotoView.setDisplayMatrix(PhotoView.java:98)
      1 frame