You need to check null on current before executing these two lines.