While recovering application, it is observed that NPE exception is thrown as below.
This is because in RM service start, active services are started first in Non HA case and later ATSv1 services are started. In HA case, tansitionToActive event has come first before ATS service are started.
This gives sufficient time to active services recover the applications which tries to publish into ATSv1 while recovering. Since ATS services are not started yet, it throws NPE.