im dumb and forgot to move that getItem() line to below the if statement, it HOPEFULLY will now not cause null pointer exceptions