Skip to content

Commit bed4cf8

Browse files
authored
Don't throw on missing member (#1815)
1 parent 5b5cbe3 commit bed4cf8

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/NJsonSchema.CodeGeneration/DefaultTemplateFactory.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,6 @@ public override IMemberAccessor GetAccessor(Type type, string name)
400400

401401
accessor = baseMemberAccessStrategy.GetAccessor(type, name);
402402

403-
if (accessor == null)
404-
{
405-
throw new InvalidOperationException();
406-
}
407-
408403
return accessor;
409404
}
410405
}

0 commit comments

Comments
 (0)