Skip to content

Commit

Permalink
Try to fix YSOD on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGeyssens committed Nov 9, 2018
1 parent 29fc782 commit 7f45bc6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MCFly/Core/MyTypeBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private static void CreateProperty(TypeBuilder tb, string typeSignature, Form fo
}
else
{
if ((fld == null && propName != "UmbracoMember") || fld.Required)
if ((fld == null || fld.Required) && propName != "UmbracoMember")
{
ConstructorInfo ctor1 = typeof(RequiredAttribute).GetConstructor(new Type[] { });
CustomAttributeBuilder attrib1 = new CustomAttributeBuilder(ctor1, new object[] { },
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# version format
version: 0.2.5.{build}
version: 0.2.6.{build}

# Do not build on tags
skip_tags: true
Expand Down
2 changes: 1 addition & 1 deletion build/Package.build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>0.2.5</Version>
<Version>0.2.6</Version>
<ProjectName>MCFly</ProjectName>
</PropertyGroup>

Expand Down

0 comments on commit 7f45bc6

Please sign in to comment.