applied the changes of Martin to SpanBox
applied changes of Martin to FQB
capture a null pointer exception