Inverter for an electric machine, comprising - an input terminal connectable to a DC voltage, - a DC link connected to the input terminal, a first line of the DC link being at a high potential of the DC link and a second line of the DC link being at a low potential of the DC link, - an output terminal connectable to stator windings of the electric machine, - a controller configured to provide in a pulsing mode pulsing signals causing the inverter to convert the DC voltage into a multiphase AC output voltage at the output terminal, - a plurality of switching elements (18, 19) being interconnected to a half bridge for each phase of the AC output voltage and - at least one interrupt device (13, 13') being arranged in one of the lines (15, 17) of the DC link, wherein a current measurement device is arranged in one of the lines (15, 17) of the DC link and configured to measure a current flowing through the line (15, 17), wherein the controller is configured - to transfer the inverter from the pulsing mode into an active short circuit mode and - to control the switching elements (18, 19) to adopt a switching configuration, in which switching elements connected to the high potential of the DC link are in a conducting switching state and switching elements connected to the low potential of the DC link are in a blocking switching state or vice versa, for transferring the inverter to the active short circuit mode characterized in that the controller is configured to control the at least one interrupt device (13, 13') to interrupt a current flow along the line (15, 17) transmitting a power from the output terminal to the input terminal if the inverter is transferred from the pulsing mode into the active short circuit mode and the measured current reaches and/or exceeds a predefined threshold value. - an input terminal connectable to a DC voltage, - a DC link connected to the input terminal, a first line of the DC link being at a high potential of the DC link and a second line of the DC link being at a low potential of the DC link, - an output terminal connectable to stator windings of the electric machine, - a controller configured to provide in a pulsing mode pulsing signals causing the inverter to convert the DC voltage into a multiphase AC output voltage at the output terminal, - a plurality of switching elements (18, 19) being interconnected to a half bridge for each phase of the AC output voltage and - at least one interrupt device (13, 13') being arranged in one of the lines (15, 17) of the DC link, wherein a current measurement device is arranged in one of the lines (15, 17) of the DC link and configured to measure a current flowing through the line (15, 17), wherein the controller is configured - to transfer the inverter from the pulsing mode into an active short circuit mode and - to control the switching elements (18, 19) to adopt a switching configuration, in which switching elements connected to the high potential of the DC link are in a conducting switching state and switching elements connected to the low potential of the DC link are in a blocking switching state or vice versa, for transferring the inverter to the active short circuit mode