summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup4.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/idevicebackup4.c b/tools/idevicebackup4.c
index c2e067d..1a9a9ea 100644
--- a/tools/idevicebackup4.c
+++ b/tools/idevicebackup4.c
@@ -289,7 +289,9 @@ static plist_t mobilebackup_factory_info_plist_new()
plist_dict_insert_item(ret, "Last Backup Date", plist_new_date(tv.tv_sec, tv.tv_usec));
value_node = plist_dict_get_item(root_node, "PhoneNumber");
- plist_dict_insert_item(ret, "Phone Number", plist_copy(value_node));
+ if (value_node && (plist_get_node_type(value_node) == PLIST_STRING)) {
+ plist_dict_insert_item(ret, "Phone Number", plist_copy(value_node));
+ }
value_node = plist_dict_get_item(root_node, "ProductType");
plist_dict_insert_item(ret, "Product Type", plist_copy(value_node));