Files
frameworks_base/core/java
Koji Fukui c6031ab7c8 Avoid NullPointerException in getHandler()
mAttachInfo may be set to null by other threads while running
getHandler().

This fix assigns mAttachInfo to a local variable. Checking null pointer
and getting a member variable are executed through the local variable.
This local variable is constant. So NullPointerException doesn't occur
even if mAttachInfo is set to null while running getHandler().

Change-Id: I4013dfb7951bd864628868ed58f8c4f5b7cbd1d3
2013-05-01 17:20:25 +09:00
..