commit | 2710b99d2f5dfd461f0cd723ba37407032fc8a5b | [log] [tgz] |
---|---|---|
author | liurong <liurong@xiaomi.com> | Fri Mar 24 20:11:48 2017 +0800 |
committer | Robin Lee <rgl@google.com> | Fri Mar 24 15:21:23 2017 +0000 |
tree | 6bce2d61c4714f7ecf0dcfccae559fd19e44c729 | |
parent | c2daeaf7e7c954b51827418b0787995805e969e3 [diff] |
[VpnSettings]Crash when activity has been recycled This is a case we found in monkey test, the main thread handles message while the activity has been recycled. It will raise a NullPointerException when we use getActivity() in following lines. Assumpt the situation is: settings run in background and activity been recycled quickly, but handler still in the process. Test: NA Change-Id: I19db4f13e13294618ec8e42e4d9c54ce23504344 Signed-off-by: liurong <liurong@xiaomi.com>