apache/spark — pull request #1289 by aarondav (2014-07-03 00:16:43+00:00)
Title: [SPARK-2350] Don't NPE while launching drivers

Prior to this change, we could throw a NPE if we launch a driver while another one is waiting, because removing from an iterator while iterating over it is not safe.