May produce NPE

the log may produce NPE, should having this after the Preconditions check