handle NotNotFound & NPE