avoid npe in gui for shopping session