Skip to content

Commit

Permalink
Fixed NPE when attacher is not created yet
Browse files Browse the repository at this point in the history
  • Loading branch information
k3b committed Apr 15, 2021
1 parent 54107bf commit bde7e1c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public void setScale(float scale) {

@Override
public ScaleType getScaleType() {
if (mAttacher == null) return ScaleType.CENTER;
return mAttacher.getScaleType();
}

Expand Down

0 comments on commit bde7e1c

Please sign in to comment.