var queue = Option(local.get)
    queue match {
      case Some(q) => ...
      case _ =>
    }

?

Dealing with nulls feels dirty. :-)