diff options
author | Chih-Wei Huang <cwhuang@linux.org.tw> | 2012-08-22 11:26:51 +0800 |
---|---|---|
committer | Chih-Wei Huang <cwhuang@android-x86.org> | 2012-08-22 11:26:51 +0800 |
commit | 21326d8b77cfd1567d87d5ebe3e327b744632e24 (patch) | |
tree | 83c0bbaf57168ef3df46c178754313be99b15c48 /graphics/java/android/renderscript/RenderScript.java | |
parent | b0b4a704400319ceaa1002f3194a40553a00cc82 (diff) |
Avoid system_server crashing due to mac address is null
It's possible that the mac address is null (getMacAddress() of WifiNative.java).
In this case system_server will crash like:
E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: WifiWatchdogStateMachine
E AndroidRuntime: java.lang.NullPointerException
E AndroidRuntime: at android.net.arp.ArpPeer.<init>(ArpPeer.java:57)
E AndroidRuntime: at android.net.wifi.WifiWatchdogStateMachine.doArpTest(WifiWatchdogStateMachine.java:866)
Check the mac address before parsing to avoid crashing.
Change-Id: I5d4205c04d479a3a2837172c6382816ea4bf74d6
Diffstat (limited to 'graphics/java/android/renderscript/RenderScript.java')
0 files changed, 0 insertions, 0 deletions