am 8ad47399: Merge change 4374 into donut

Merge commit '8ad473994d402e42ec3c8f44f31e99ef2f7e9237'

* commit '8ad473994d402e42ec3c8f44f31e99ef2f7e9237':
  Fixes a potential NPE in View.
This commit is contained in:
Android (Google) Code Review
2009-06-16 21:59:15 -07:00
committed by The Android Open Source Project

View File

@@ -7157,8 +7157,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
getLocationInWindow(location);
final AttachInfo info = mAttachInfo;
location[0] += info.mWindowLeft;
location[1] += info.mWindowTop;
if (info != null) {
location[0] += info.mWindowLeft;
location[1] += info.mWindowTop;
}
}
/**