that can never be null

This commit is contained in:
Leijurv
2019-04-16 10:20:23 -07:00
parent 96414b37f3
commit f49df63183

View File

@@ -186,7 +186,7 @@ public abstract class AbstractNodeCostSearch implements IPathFinder, Helper {
} }
protected Optional<IPath> bestSoFar(boolean logInfo, int numNodes) { protected Optional<IPath> bestSoFar(boolean logInfo, int numNodes) {
if (startNode == null || bestSoFar == null) { if (startNode == null) {
return Optional.empty(); return Optional.empty();
} }
double bestDist = 0; double bestDist = 0;