If user doesnt add any location then code was giving error, which is fixed.