OSDN Git Service

Prevent crash when invalidating all Views
authorRomain Guy <romainguy@google.com>
Fri, 14 Sep 2012 05:50:18 +0000 (22:50 -0700)
committerRomain Guy <romainguy@google.com>
Fri, 14 Sep 2012 05:50:18 +0000 (22:50 -0700)
commitf84208faf8e9ab7bbf81224006662fc3219c6ad4
tree93fe9c4c429334bfa904bcd21eab9701210811b8
parent1a5efec6a0ee9034b715a576f5ed108668069d25
Prevent crash when invalidating all Views
Bug #7165793

A ViewRootImpl's root view can be null. Check for this condition to
prevent an NPE invalidateWorld(). Other messages perform a similar
check to properly handle the case where mView == null.

Change-Id: I5bcfc41c48a469d38b21be74df2f6c715b0f9352
core/java/android/view/ViewRootImpl.java