wow thats a rare bug
This commit is contained in:
@@ -193,7 +193,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
|
||||
|
||||
@Override
|
||||
public Optional<IPath> bestPathSoFar() {
|
||||
if (startNode == null || bestSoFar[0] == null) {
|
||||
if (startNode == null || bestSoFar == null || bestSoFar[0] == null) {
|
||||
return Optional.empty();
|
||||
}
|
||||
for (int i = 0; i < bestSoFar.length; i++) {
|
||||
|
Reference in New Issue
Block a user