NullReferenceException

May 12, 2013 at 11:36 PM
I'm getting a NullReferenceException in the ProfessionalClaimToHcfa1500FormTransformation process. In debugging, it appears to be because the incoming 837 has some claims where they pass in a name only for a Service Location.
NM1*77*2*PATIENTS HOME~
There is no address line 1, city, state, zip, etc. The source in TransformClaimToHcfa1500 does not seem to handle this. I've tried adding a check:
if (serviceLocation.Address.Line1 != null)
But the check itself throws the NullReferenceException. Any idea how to handle this?
May 12, 2013 at 11:58 PM
Nevermind, I saw my problem right after posting. I needed to check for null on serviceLocation.Address not the Address.Line1.