Skip to content

ALAsset有可能为nil的问题 #2

Description

@xl19880619

2015-07-10 19:21:00.204 JFImagePickerController[3497:1256692] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: key cannot be nil'
*** First throw call stack:
(0x184f642d8 0x196c380e4 0x184e4d428 0x1000c7aac 0x100128fd4 0x100128f94 0x100136b54 0x100138248 0x19749522c 0x197494ef0)
2015-07-10 19:21:00.204 JFImagePickerController[3497:1253900] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: key cannot be nil'
*** First throw call stack:
(0x184f642d8 0x196c380e4 0x184e4d428 0x1000c7aac 0x100128fd4 0x100128f94 0x100136b54 0x100138248 0x19749522c 0x197494ef0)
2015-07-10 19:21:00.205 JFImagePickerController[3497:1256832] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* setObjectForKey: key cannot be nil'
*** First throw call stack:
(0x184f642d8 0x196c380e4 0x184e4d428 0x1000c7aac 0x100128fd4 0x100128f94 0x100136b54 0x100138248 0x19749522c 0x197494ef0)
libc++abi.dylib: libc++abi.dylib: libc++abi.dylib: terminating with uncaught exception of type NSExceptionterminating with uncaught exception of type NSException

terminating with uncaught exception of type NSException

上面为异常输出
底下为asset输出
(lldb) po [[asset defaultRepresentation] filename]
nil
(lldb) po asset
ALAsset - Type:Photo, URLs:assets-library://asset/asset.JPG?id=7615D9DA-C31A-4351-A711-2A868264F8D5&ext=JPG
图片可能进行icloud存储优化过

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions