This commit is contained in:
joachimschmidt557 2019-03-20 19:36:27 +01:00
parent 6431df6bf4
commit f0f2656db7
2 changed files with 3 additions and 1 deletions

View file

@ -151,7 +151,7 @@ public abstract class GraphAlgorithm<T> {
if (prevNode == null)
return null;
while (!prevNode.node.equals(destination)) {
while (prevNode != null) {
AlgorithmNode<T> prevPrevNode = prevNode.previous;