Skip to content

Commit

Permalink
Fix missing feature registration issue (microsoft#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
almedina-ms committed Jun 21, 2019
1 parent ce9eaec commit 971afa3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ else if (alignment == ActionAlignment.Center.swigValue())
throw new AdaptiveFallbackException(actionElement);
}

if (!actionElement.MeetsRequirements(featureRegistration))
if ((featureRegistration != null) && (!actionElement.MeetsRequirements(featureRegistration)))
{
throw new AdaptiveFallbackException(actionElement, featureRegistration);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ else if(tag instanceof AdaptiveCard)
throw new AdaptiveFallbackException(cardElement);
}

if (!cardElement.MeetsRequirements(featureRegistration))
if ((featureRegistration != null) && (!cardElement.MeetsRequirements(featureRegistration)))
{
throw new AdaptiveFallbackException(cardElement, featureRegistration);
}
Expand Down

0 comments on commit 971afa3

Please sign in to comment.