check for null in offline.