Skip to content

Commit 05edec9

Browse files
committed
Fixes #90, #91 - EXC_BAD_ACCESS crash
1 parent 48f7881 commit 05edec9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios-deploy.c

+4
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ CFStringRef copy_xcode_path_for(CFStringRef subPath, CFStringRef search) {
319319
const CFStringRef get_device_hardware_name(const AMDeviceRef device) {
320320
CFStringRef model = AMDeviceCopyValue(device, 0, CFSTR("HardwareModel"));
321321

322+
if (model == NULL) {
323+
return CFSTR("Unknown Device");
324+
}
325+
322326
// iPod Touch
323327

324328
GET_FRIENDLY_MODEL_NAME(model, "N45AP", "iPod Touch")

0 commit comments

Comments
 (0)