Convicted robber gets life in prison