Should fix the NullPointerExceptions. Checks if there is a ramp inside of the network originating at the freeway's end ramp before returning a value.
Should fix NullPointerException.