KN-5875 null reference check