aboutsummaryrefslogtreecommitdiff
path: root/objectivec/GPBMessage.m
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2017-06-22 10:18:00 -0400
committerThomas Van Lenten <thomasvl@google.com>2017-06-22 10:18:00 -0400
commitdb45687a389dcf62db287862d774bdffd689c6a2 (patch)
treec4558ba097bedf1ecd65d8f0989eac5e3b8bdfa0 /objectivec/GPBMessage.m
parent703cd8e11c8d34283d4c8bf869c61866e8211c9d (diff)
downloadprotobuf-db45687a389dcf62db287862d774bdffd689c6a2.tar.gz
protobuf-db45687a389dcf62db287862d774bdffd689c6a2.tar.bz2
protobuf-db45687a389dcf62db287862d774bdffd689c6a2.zip
If we fail to get a descriptor just super the method resolving.
This should never happen, but if someone is swizzling or do other hooking of methods, anything is possible, so this seems slighty safer than they returning NO.
Diffstat (limited to 'objectivec/GPBMessage.m')
-rw-r--r--objectivec/GPBMessage.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/objectivec/GPBMessage.m b/objectivec/GPBMessage.m
index 55c7b308..37cff6ce 100644
--- a/objectivec/GPBMessage.m
+++ b/objectivec/GPBMessage.m
@@ -3077,7 +3077,7 @@ static void ResolveIvarSet(GPBFieldDescriptor *field,
+ (BOOL)resolveInstanceMethod:(SEL)sel {
const GPBDescriptor *descriptor = [self descriptor];
if (!descriptor) {
- return NO;
+ return [super resolveInstanceMethod:sel];
}
// NOTE: hasOrCountSel_/setHasSel_ will be NULL if the field for the given