nullpointerexception testing removed.