Added NullPointerException to constructor.