Fixed a NullPointerException in PortInputGenerator

Well, potential NullPointerException.