Merge "Frameworks/base: Fix null-pointer check"
This commit is contained in:
@ -396,7 +396,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