handle null pathalert