Nonviolent resistance does not work against Nazis or Communists or Islamists.
Gandhi himself was never in danger of losing his life to the British "oppressor" - when he was murdered he was murdered by a fellow Hindu.
Six million Jews were murdered by the Nazis whether they obeyed the laws or didn't obey the laws. And Gandhi was either too stupid or too self-righteous to realize that.
there were quite a few Indians killed under the british, not trying to defend the idiotic comments of Ghandi but to say that he was in no danger is not totally accurate.