This project has moved. For the latest updates, please go here.

NullReferenceException

May 13, 2013 at 12:36 AM
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 13, 2013 at 12:58 AM
Nevermind, I saw my problem right after posting. I needed to check for null on serviceLocation.Address not the Address.Line1.