check for null port