Merge "Prevent NPE in MessagingImageMessage" into udc-dev

This commit is contained in:
TreeHugger Robot
2023-04-05 09:34:31 +00:00
committed by Android (Google) Code Review

View File

@@ -198,6 +198,11 @@ public class MessagingImageMessage extends ImageView implements MessagingMessage
@Override
public int getMeasuredType() {
if (mDrawable == null) {
Log.e(TAG, "getMeasuredType() after recycle()!");
return MEASURED_NORMAL;
}
int measuredHeight = getMeasuredHeight();
int minImageHeight;
if (mIsIsolated) {