filter out warning if sampling period is null.