I don't know what's causing the nullpointerexception.