Nasty NPE fixer upper.