Merge "Frameworks/base: Fix null-pointer check"

This commit is contained in:
Andreas Gampe
2015-03-16 16:59:13 +00:00
committed by Gerrit Code Review

View File

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