SolutionGuidance / psm

Welcome to the Medicare/Medicaid Provider Enrollment Screening Portal
http://projectpsm.org/
Other
26 stars 20 forks source link

NPE on submitting a personal care assistant enrollment application #968

Closed jasonaowen closed 6 years ago

jasonaowen commented 6 years ago

The forms for the "Personal Care Assistant" provider type do not include a contact email address. When we try to send an email notification for successfully submitting an enrollment application, we get a null pointer exception.

More broadly, we should degrade more gracefully. Rather than (or at least, in addition to) updating the PCA forms to include an email address, we should check for missing email addresses before sending the notification, log a warning, and then not send an email notification. In particular, we should not show an error page instead of a success page if the enrollment has been successfully submitted but for the notification.

See also issue #341 Notify submitter & drafter via contact email when enrollment status changes