Protect renderer vs cp.getPorts() == null