 In 1847 he married actress Fanny Matras (1828–1878).As commander of the Academic Legion during the 1848 revolutions in Vienna, Aigner was court-martialed for high treason and condemned to death.However, Alfred I, Prince of Windisch-Grätz pardoned him.