score:1

Accepted answer

The problem is that due to your outer joins, fork and map may be null. Of course when they're null, you can't access their properties. You may need something like this:

Status = (fork == null) ? null : fork.Status,
MapID = (map == null) ? null : map.ID 

Related Articles