error handling for notification NPE