mirror of
https://github.com/zhigang1992/shadowsocks-iOS.git
synced 2026-04-29 09:45:42 +08:00
fix crash
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
|
||||
NSError *error = nil;
|
||||
NSData *content = [NSData dataWithContentsOfFile:pageFilename];
|
||||
if (error == NULL) {
|
||||
if (error == NULL && content != nil) {
|
||||
NSArray *data = [NSJSONSerialization JSONObjectWithData:content options:NSJSONReadingMutableContainers error:&error];
|
||||
for (NSDictionary *dict in data) {
|
||||
SWBPage *page = [[SWBPage alloc] init];
|
||||
|
||||
Reference in New Issue
Block a user