Currently when there is an initial route that has jobs without any locations and the default AlgorithmUtil class is used, the computation of transport costs will fail as some locations are still null.
This happens as the current check only evaluates new jobs that should be added, but not the existing ones.
I've provided a reproducible example ( 7805a89 ) and a fix for this problem ( 09afd21 ).
Currently when there is an initial route that has jobs without any locations and the default AlgorithmUtil class is used, the computation of transport costs will fail as some locations are still null.
This happens as the current check only evaluates new jobs that should be added, but not the existing ones.
I've provided a reproducible example ( 7805a89 ) and a fix for this problem ( 09afd21 ).
Happy for any feedback.