Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashed at MMWormholeCoordinatedFileTransiting.m:70 because of -[NSURL initFileURLWithPath:]: nil string parameter #82

Open
DamonChen117 opened this issue Jul 18, 2017 · 2 comments

Comments

@DamonChen117
Copy link

-[NSURL initFileURLWithPath:]: nil string parameter

0 CoreFoundation __exceptionPreprocess + 132
1 libobjc.A.dylib objc_exception_throw + 56
2 CoreFoundation -[NSException encodeWithCoder:] + 0
3 Foundation -[NSURL(NSURL) initFileURLWithPath:] + 144
4 Foundation +[NSURL(NSURL) fileURLWithPath:] + 64
5 MMWormhole -[MMWormholeCoordinatedFileTransiting messageObjectForIdentifier:] (MMWormholeCoordinatedFileTransiting.m:70)
6 MMWormhole -[MMWormhole didReceiveMessageNotification:] (MMWormhole.m:178)
7 CoreFoundation

Should check if filePath is nil before calling [NSURL fileURLWithPath:filePath]

@cnstoll
Copy link
Contributor

cnstoll commented Jul 21, 2017

Interesting. I can buy that. Do you know why the file was nil? Was this a configuration error or a runtime user related error?

@DamonChen117
Copy link
Author

@cnstoll It's a runtime user related error. We have about 40,000 active users, just got 2 crashes reported by XCode. I don't know why the file was nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants