Is it possible for the status1 or status2 to be null at this point ? I see null checks just below this code.