接口返回null崩溃(百度移动统计错误)

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的返回空字符串
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值