We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c94bab commit c8527e1Copy full SHA for c8527e1
1 file changed
src/MethodBoundaryAspect.Fody/ModuleWeaver.cs
@@ -258,7 +258,10 @@ private bool WeaveMethod(
258
259
private bool IsMethodBoundaryAspect(TypeDefinition attributeTypeDefinition)
260
{
261
- var currentType = attributeTypeDefinition.BaseType;
+ var currentType = attributeTypeDefinition?.BaseType;
262
+ if (currentType == null) // can be null for Visual Basic Winforms projects, see https://github.com/vescon/MethodBoundaryAspect.Fody/issues/126
263
+ return false;
264
+
265
do
266
267
if (currentType.FullName == AttributeFullNames.OnMethodBoundaryAspect)
0 commit comments