Merge "ViewRootImpl: Guard against null in performMeasure" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4bc839e267
@@ -2401,6 +2401,9 @@ public final class ViewRootImpl implements ViewParent,
|
||||
}
|
||||
|
||||
private void performMeasure(int childWidthMeasureSpec, int childHeightMeasureSpec) {
|
||||
if (mView == null) {
|
||||
return;
|
||||
}
|
||||
Trace.traceBegin(Trace.TRACE_TAG_VIEW, "measure");
|
||||
try {
|
||||
mView.measure(childWidthMeasureSpec, childHeightMeasureSpec);
|
||||
|
||||
Reference in New Issue
Block a user