fixed nullptr exception if no ipv4 address available