Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Add indexer null-check for preallocated tag helper attributes #1425

Closed
wants to merge 2 commits into from

Conversation

ajaybhargavb
Copy link
Contributor

__TestNamespace_InputTagHelper2.StringDictionaryProperty["grabber"] = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
__TestNamespace_InputTagHelper1.StringDictionaryProperty["paprika"] = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
__TestNamespace_InputTagHelper2.StringDictionaryProperty["paprika"] = (string)__tagHelperAttribute_5.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_5);
if (__TestNamespace_InputTagHelper1.StringDictionaryProperty == null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should still occur. You set the dictionary property below.

@@ -0,0 +1,3 @@
@addTagHelper *, TestAssembly

<input type="text" prefix-hello="world" prefix-test="value" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have a preallocated test. Try adding this to that test (if it's not already duplicated).

Copy link
Contributor

@NTaylorMullen NTaylorMullen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you consolidate tests.

@ajaybhargavb
Copy link
Contributor Author

27ac5da

@rynowak rynowak deleted the ajbaaska/prealloc branch January 6, 2018 05:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants