[PATCH OLK-6.6] atm: Fix NULL pointer dereference