commit | c6031ab7c80b9bf8c19f3bced4797bb0bacae3f2 | [log] [tgz] |
---|---|---|
author | Koji Fukui <koji.fukui@sonymobile.com> | Mon Apr 01 14:37:01 2013 +0900 |
committer | Takeshi Aimi <takeshi.aimi@sonymobile.com> | Wed May 01 17:20:25 2013 +0900 |
tree | cb390856b96e4b1ea267d35d4100ecb3be75d302 | |
parent | ddf7a0660c456a975b12794c54fd6681e422ef29 [diff] |
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