Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReflectionUtils.GetTypeConverter NullReferenceException when target type does not have a TypeConverter #5

Open
GoogleCodeExporter opened this issue Jun 29, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

ReflectionUtils.GetTypeConverter() throw exception when the target
type does not have a TypeConverter attribute.

Reproduction steps:
Call an endpoint returning a type containing a generic list member (eg 
SampleClass { public List<int> PropertyCausingCrash { get; set; }; } ) from 
a SilverLight application.

Resolution:
Adding "if (typeConverterAttribute == null) return null;" before the return 
statement in ReflectionUtils.GetTypeConverter [Util/ReflectionUtils:685] 
fixes this issue & allows for deserialisation to List<*> instead of 
ArrayCollection within Silverlight.


What version of the product are you using? On what operating system?
Windows XP SP3
Visual Studio 2008
SilverLight 3
FluorineFX 1.0.0.15 (source debug build)


Original issue reported on code.google.com by daniel.l...@gmail.com on 20 Oct 2009 at 3:25

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

No branches or pull requests

1 participant