Cool, thanks for fixing this. Just FYI, you can use Scala's "for" syntax here like this to run code only if all the options are defined:
```
for {
  job <- idToActiveJob.get(task.stageId)
  stage <- stageIdToStage.get(task.stageId)
  stageInfo <- stageToInfos.get(stage)
} {
  // just use job and stageInfo directly; they will be the values of the options
}
```

For example, take a look at http://www.scala-lang.org/old/node/111. The same thing that handles sequences works for Options (an Option is like a sequence with either 0 or 1 elements).