 He was saved from execution by the intervention of his doctoral supervisor, Lenard, ironically an ardent Nazi supporter.He was first interned in Dachau, then in four other concentration camps until the end of the war.Johannes Plendl also played a role in his survival in the camps, by appointing Mayer to head a radio laboratory, even though Mayer had no experience in radio.