* commit '8e176d396d393af90ffe288d849e95ff40aa2b23': Frameworks/base: Fix null-pointer check
This commit is contained in:
@@ -408,7 +408,7 @@ public class VectorDrawable extends Drawable {
|
||||
* @hide
|
||||
*/
|
||||
public float getPixelSize() {
|
||||
if (mVectorState == null && mVectorState.mVPathRenderer == null ||
|
||||
if (mVectorState == null || mVectorState.mVPathRenderer == null ||
|
||||
mVectorState.mVPathRenderer.mBaseWidth == 0 ||
|
||||
mVectorState.mVPathRenderer.mBaseHeight == 0 ||
|
||||
mVectorState.mVPathRenderer.mViewportHeight == 0 ||
|
||||
|
||||
Reference in New Issue
Block a user