Code block added to avoid Null pointer Exception