Add exception handling illegal memory address