Realized I was an idiot about the null pointer exception thing and fixed
it.