diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-28 10:23:42 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2015-06-28 10:23:42 +0200 |
| commit | 61aeb72522c4ad315fed13d8ddd3d73f7a21bc2a (patch) | |
| tree | 70f93a96227e7514fac2ecb79cb215d4fbb78d40 /src/CompilerServices | |
| parent | 639be44b59e9f7320473374037a6fa850b4413b6 (diff) | |
* OpenTK:
* GOLIBTest_4.cs: fps in pgbar
* test4.goml: tests
* CompilerServices.cs: check null src value
Diffstat (limited to 'src/CompilerServices')
| -rw-r--r-- | src/CompilerServices/CompilerServices.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CompilerServices/CompilerServices.cs b/src/CompilerServices/CompilerServices.cs index b2f2e14c..bedb554f 100644 --- a/src/CompilerServices/CompilerServices.cs +++ b/src/CompilerServices/CompilerServices.cs @@ -199,8 +199,10 @@ namespace go if (miDst.MemberType == MemberTypes.Property) { PropertyInfo piDst = miDst as PropertyInfo; //TODO: handle other dest type conversions - if (piDst.PropertyType == typeof(string)) - srcVal = srcVal.ToString (); + if (piDst.PropertyType == typeof(string)){ + if (srcVal != null) + srcVal = srcVal.ToString (); + } piDst.GetSetMethod ().Invoke (binding.Source, new object[] { srcVal }); } else if (miDst.MemberType == MemberTypes.Field) { FieldInfo fiDst = miDst as FieldInfo; |