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

Terminating app due to uncaught exception 'NSInvalidArgumentException' #4

Closed
super-cache-money opened this issue Jan 7, 2018 · 4 comments · Fixed by #7
Closed

Terminating app due to uncaught exception 'NSInvalidArgumentException' #4

super-cache-money opened this issue Jan 7, 2018 · 4 comments · Fixed by #7

Comments

@super-cache-money
Copy link

super-cache-money commented Jan 7, 2018

Thanks for this super nifty-seeming tool.

Right at the end, when actually running it, I get a whole bunch of output which makes it seem like it's working. The last of which is:

2018-01-07 01:57:34.725 watoi[9470:32807909] 	 is group chat
2018-01-07 01:57:34.725 watoi[9470:32807909] 	 not found member 27123456789@s.whatsapp.net
2018-01-07 01:57:34.728 watoi[9470:32807909] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unacceptable type of value for attribute: property = "isAdmin"; desired type = NSNumber; given type = NSNull; value = <null>.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff8fce1452 __exceptionPreprocess + 178
	1   libobjc.A.dylib                     0x00007fff97286f7e objc_exception_throw + 48
	2   CoreData                            0x00007fff8350411c _PFManagedObject_coerceValueForKeyWithDescription + 2892
	3   CoreData                            0x00007fff834db5a1 _sharedIMPL_setvfk_core + 177
	4   watoi                               0x0000000103ebcdd6 -[Importer addMissingMember:toChat:asAdmin:] + 353
	5   watoi                               0x0000000103ebd708 -[Importer importChats] + 2067
	6   watoi                               0x0000000103ebc208 -[Importer import] + 27
	7   watoi                               0x0000000103ebbe6e main + 326
	8   libdyld.dylib                       0x00007fff980ba5ad start + 1
	9   ???                                 0x0000000000000004 0x0 + 4
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1]    9470 abort      ./build/Release/watoi ./path/to/msgstore.db
@super-cache-money
Copy link
Author

super-cache-money commented Jan 7, 2018

Maybe I'm part of some weird adminless group?
I'd try to fix it by adding a null check or something, but I know zero Objective C.

@super-cache-money
Copy link
Author

Well, TIL how to do a null check in objective C :D. Fixed. If anyone else runs into this let me know and I'll send a PR.

@residentsummer
Copy link
Owner

@super-cache-money seems like an easy fix, so could you please send a PR?

@Felizolinha
Copy link
Contributor

I opened a PR for the fix, tested it in with my devices and I believe it worked as expected.

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

Successfully merging a pull request may close this issue.

3 participants