fix null pointer on exception message resolution