am 4754f401: Merge "Avoid NullPointerException in getHandler()"
* commit '4754f401a912305e1ceec04b62ad9b9f7d3c2ff6': Avoid NullPointerException in getHandler()
This commit is contained in:
@@ -10699,8 +10699,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
||||
* handler can be used to pump events in the UI events queue.
|
||||
*/
|
||||
public Handler getHandler() {
|
||||
if (mAttachInfo != null) {
|
||||
return mAttachInfo.mHandler;
|
||||
final AttachInfo attachInfo = mAttachInfo;
|
||||
if (attachInfo != null) {
|
||||
return attachInfo.mHandler;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user