Object Adapter and Nullable properties.

Object Adapter and Nullable properties.

Old forum URL: forums.lhotka.net/forums/t/2925.aspx


Jimbo posted on Tuesday, May 22, 2007

For Rocky:

Object adapter encounters a Null Reference Exception on this line in GetField:when the property is of System.Nullable.

Else
              ' found a property, return its value
              result = prop.GetValue(obj, Nothing).ToString
            End If

In our export implemention (XML/Excel) this results in an output like: Error reading value: AuditDecisionDate

Jimbo

Error reading value: pdteAuditDecisionDate
Error reading value: pdteAuditDecisionDate

RockfordLhotka replied on Tuesday, May 22, 2007

Good, thanks - I've added this to the wish list.

I'd try to do a quick fix now, but the reality is that the reflection code used by ObjectAdapter is terribly old and needs some major overhaul to bring it up to date. I don't have time to do that now, so it will have to wait a bit.

Copyright (c) Marimer LLC