-Fix crash
This commit is contained in:
1 parent
6134edbd12
commit
1bf4b9ef1d
2 files changed
+6
-4
No files matched your search
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "PNObject"
|
s.name = "PNObject"
|
||||||
s.version = "0.8.1"
|
s.version = "0.8.2"
|
||||||
s.summary = "PNObject is a simple replica of the more complex ParseObject"
|
s.summary = "PNObject is a simple replica of the more complex ParseObject"
|
||||||
|
|
||||||
# This description is used to generate tags and improve search results.
|
# This description is used to generate tags and improve search results.
|
||||||
|
|||||||
@@ -208,9 +208,7 @@ NSString * const PNObjectMappingSelector = @"selector";
|
|||||||
NSString *mappedJSONType;
|
NSString *mappedJSONType;
|
||||||
NSString *type;
|
NSString *type;
|
||||||
|
|
||||||
if (self.JSON && [[self.JSON allKeys] count] == 0) {
|
|
||||||
self.JSON = [[NSMutableDictionary alloc] initWithDictionary:[self reverseMapping]];
|
|
||||||
}
|
|
||||||
|
|
||||||
NSDictionary *properties = [PNObject propertiesForClass:self.class];
|
NSDictionary *properties = [PNObject propertiesForClass:self.class];
|
||||||
|
|
||||||
@@ -348,6 +346,10 @@ NSString * const PNObjectMappingSelector = @"selector";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self.JSON && [[self.JSON allKeys] count] == 0) {
|
||||||
|
self.JSON = JSON;
|
||||||
|
}
|
||||||
|
|
||||||
return JSON;
|
return JSON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user