Snap for 10716635 from 2980b54dea97f7eb59075e2836a0e1d8e1d74cdf to mainline-neuralnetworks-release

Change-Id: Ie05e0c2e1406ac0bc56cea8c21d4e2d53da0fc90
diff --git a/src/java/com/android/internal/telephony/uicc/IccRecords.java b/src/java/com/android/internal/telephony/uicc/IccRecords.java
index f803696..ae93b09 100644
--- a/src/java/com/android/internal/telephony/uicc/IccRecords.java
+++ b/src/java/com/android/internal/telephony/uicc/IccRecords.java
@@ -1687,7 +1687,7 @@
     }
 
     public void loadFdnRecords() {
-        if (mParentApp != null) {
+        if (mParentApp != null && mAdnCache != null) {
             log("Loading FdnRecords");
             mAdnCache.requestLoadAllAdnLike(IccConstants.EF_FDN, EF_EXT2,
                     obtainMessage(EVENT_GET_FDN_DONE));