- Fix Exception in PNObject ReverseMapping method

This commit is contained in:
Giuseppe Nucifora 2016-04-04 13:04:10 +02:00
parent 566019c57f
commit 437a3e8e47
2 changed files with 18 additions and 18 deletions

View File

@ -8,7 +8,7 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "PNObject" s.name = "PNObject"
s.version = "0.5.0" s.version = "0.5.1"
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.

View File

@ -222,13 +222,6 @@ NSString * const PNObjectMappingSelector = @"selector";
@try { @try {
value = [self valueForKey:propertyName]; value = [self valueForKey:propertyName];
}
@catch (NSException *exception) {
continue;
}
@finally {
//NSLog(@"PropertyName PropertyType Value: %@ - %@ - %@",propertyName,propertyType,value);
((void (^)())@{ ((void (^)())@{
@"c" : ^{ @"c" : ^{
@ -323,6 +316,13 @@ NSString * const PNObjectMappingSelector = @"selector";
} }
})(); })();
} }
@catch (NSException *exception) {
continue;
}
@finally {
//NSLog(@"PropertyName PropertyType Value: %@ - %@ - %@",propertyName,propertyType,value);
}
} }
return JSON; return JSON;