Explorar o código

Merge pull request #3261 from thomasvl/super_oddcase

If we fail to get a descriptor just super the method resolving.
Thomas Van Lenten %!s(int64=8) %!d(string=hai) anos
pai
achega
eca0f4ee91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      objectivec/GPBMessage.m

+ 1 - 1
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