The robustness of the generalized Gini index