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

DefaultModelMetadata.PropertyGetter is not null-safe #2986

Closed
dougbu opened this issue Aug 17, 2015 · 1 comment
Closed

DefaultModelMetadata.PropertyGetter is not null-safe #2986

dougbu opened this issue Aug 17, 2015 · 1 comment
Assignees
Milestone

Comments

@dougbu
Copy link
Member

dougbu commented Aug 17, 2015

No current MVC code uses DefaultModelMetadata.PropertyGetter. If it were used, would find null values e.g. ModelMetadata.PropertyGetter(null) lead to NREs. Root cause may be the fact PropertyHelper.MakeNullSafeFastPropertyGetter() is not referenced.

Experienced this issue while developing PR #2984.

@rynowak
Copy link
Member

rynowak commented Aug 21, 2015

b5c9d90

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants