Fixed issue with nullable parameter getting passed to ArrayList constructor.
Pedantic tidying up.