warning fix in null test