Null reference exception
Brought to you by:
evolvesoftware
A null refference exception is thrown because of the
following code in class MappingUnit, CreateMapping
method.
The faulty code segment is:
if (fi == null)
{
throw new MappingException("Invalid
mapping detected: No field " + fi.Name + " in
IPersistableObject " + persistableObject.GetType
().FullName);
}
If fi is null - you cannot use fi.Name ! - use
field.Name instead.