mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
NPE with no args.
This commit is contained in:
parent
06535e3921
commit
042a3153e5
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ public class DynamicGraphExecutor<T>(val graph: DynamicGraph<T>,
|
|||
* @return 0 if all went well, > 0 otherwise
|
||||
*/
|
||||
public fun run() : Int {
|
||||
var lastResult : TaskResult? = null
|
||||
var lastResult = TaskResult()
|
||||
while (graph.freeNodes.size() > 0) {
|
||||
log(3, "Current count: ${graph.nodeCount}")
|
||||
synchronized(graph) {
|
||||
|
@ -75,7 +75,7 @@ public class DynamicGraphExecutor<T>(val graph: DynamicGraph<T>,
|
|||
}
|
||||
}
|
||||
executor.shutdown()
|
||||
return if (lastResult?.success!!) 0 else 1
|
||||
return if (lastResult.success) 0 else 1
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue