430a5e7ebe
If a class implements a protocol with optional members, and that class also exports methods whose selectors match an optional member, but the signature doesn't match, we must show a useful warning instead of erroring out due to a NullReferenceException. Fixes this: System.NullReferenceException: Object reference not set to an instance of an object at Registrar.StaticRegistrar.GetBlockProxyAttributeMethod (Mono.Cecil.MethodDefinition method, System.Int32 parameter) [0x00001] in /Users/builder/data/lanes/1381/9de35b83/source/xamarin-macios/tools/common/StaticRegistrar.cs:4113 at Registrar.StaticRegistrar.GetBlockWrapperCreator (Registrar.Registrar+ObjCMethod obj_method, System.Int32 parameter) [0x001e1] in /Users/builder/data/lanes/1381/9de35b83/source/xamarin-macios/tools/common/StaticRegistrar.cs:4101 at Registrar.StaticRegistrar.Specialize (Registrar.AutoIndentStringBuilder sb, Registrar.Registrar+ObjCMethod method, System.Collections.Generic.List`1[T] exceptions) [0x0216b] in /Users/builder/data/lanes/1381/9de35b83/source/xamarin-macios/tools/common/StaticRegistrar.cs:3683 when building the msbuild/tests/MyWatchKit2IntentsExtension project. |
||
---|---|---|
.. | ||
Application.cs | ||
Assembly.cs | ||
BuildTasks.cs | ||
CompilerFlags.cs | ||
CoreResolver.cs | ||
DerivedLinkContext.cs | ||
Driver.cs | ||
Frameworks.cs | ||
MachO.cs | ||
Make.common | ||
Optimizations.cs | ||
PInvokeWrapperGenerator.cs | ||
SdkVersions.cs.in | ||
StaticRegistrar.cs | ||
StringUtils.cs | ||
Symbols.cs | ||
Target.cs | ||
TargetFramework.cs | ||
cache.cs |