praveen|adding null check for warehouse lookup