summaryrefslogtreecommitdiffstats
path: root/telephony
diff options
context:
space:
mode:
authorSanket Padawe <sanketpadawe@google.com>2015-01-20 23:54:52 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-20 23:54:52 +0000
commit63e77bf8a5be6844bd8fd9d07cd303f6dc72c64e (patch)
tree0029a469e4730e08bdcb82eb932dca1d946bbd47 /telephony
parent0ae35a8a26be0c2be53e5d149aead4d5d32ad07f (diff)
parentf0f5eee8238284aad08fd573959392542e57a8ab (diff)
downloadframeworks_base-63e77bf8a5be6844bd8fd9d07cd303f6dc72c64e.zip
frameworks_base-63e77bf8a5be6844bd8fd9d07cd303f6dc72c64e.tar.gz
frameworks_base-63e77bf8a5be6844bd8fd9d07cd303f6dc72c64e.tar.bz2
am f0f5eee8: Merge "Fixed a crash in TelephonyManager while calling getDeviceID()" into lmp-mr1-dev automerge: e54e760 automerge: 76e9d18
* commit 'f0f5eee8238284aad08fd573959392542e57a8ab': Fixed a crash in TelephonyManager while calling getDeviceID()
Diffstat (limited to 'telephony')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 41f0bdd..ace945d 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -624,6 +624,8 @@ public class TelephonyManager {
return getITelephony().getDeviceId();
} catch (RemoteException ex) {
return null;
+ } catch (NullPointerException ex) {
+ return null;
}
}