1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Hi
使用app时发生了崩溃, 详细错误信息如下:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSUserDefaults setObject:forKey:]: attempt to insert non-property list object null for key username'
详细错误信息:
(
0 CoreFoundation 0x2e9bae83 + 130
1 libobjc.A.dylib 0x390566c7 objc_exception_throw + 38
2 CoreFoundation 0x2e9badc5 -[NSException initWithCoder:] + 0
3 Foundation 0x2f2eba91 + 120
4 HuaTu 0x0009988d -[HTMainVC requestCompleteUserInfo:] + 312
5 HuaTu 0x00052acd -[ASIHTTPRequest reportFinished] + 80
6 Foundation 0x2f39ee4b + 386
7 CoreFoundation 0x2e985f1f + 14
8 CoreFoundation 0x2e9853e7 + 206
9 CoreFoundation 0x2e983bd7 + 630
10 CoreFoundation 0x2e8ee471 CFRunLoopRunSpecific + 524
11 CoreFoundation 0x2e8ee253 CFRunLoopRunInMode + 106
12 GraphicsServices 0x335ef2eb GSEventRunModal + 138
13 UIKit 0x311a3845 UIApplicationMain + 1136
14 HuaTu 0x00022377 _mh_execute_header + 17271
15 HuaTu 0x00022338 _mh_execute_header + 17208
)
解决办法--修改后台接口,原本返回null的返回空字符串