From db45687a389dcf62db287862d774bdffd689c6a2 Mon Sep 17 00:00:00 2001 From: Thomas Van Lenten Date: Thu, 22 Jun 2017 10:18:00 -0400 Subject: 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. --- objectivec/GPBMessage.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'objectivec/GPBMessage.m') 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 -- cgit v1.2.3