diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2017-06-22 10:18:00 -0400 |
---|---|---|
committer | Thomas Van Lenten <thomasvl@google.com> | 2017-06-22 10:18:00 -0400 |
commit | db45687a389dcf62db287862d774bdffd689c6a2 (patch) | |
tree | c4558ba097bedf1ecd65d8f0989eac5e3b8bdfa0 | |
parent | 703cd8e11c8d34283d4c8bf869c61866e8211c9d (diff) | |
download | protobuf-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.
-rw-r--r-- | objectivec/GPBMessage.m | 2 |
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 |