fix to catch null pointer exception at the getAddress call