Added NullPointerException checks to all reference params in controllers