Fix NullPointerException

No, it gets the JDBC URL (through some call chain) which requires the port