Prevent exception from null e