A high-pressure processing machine, the processing machine having a treatment vessel, a processing bag, at least one plug (5a,5b) for closing the treatment vessel and a device for detecting breakages in the processing bag, characterised in that the device is equipped with an elongated electrode (1) adapted to partially extend through the inside of the at least one plug (5a, 5b) into the bag (6) containing the product to be processed, the electrode being electrically insulated by an insulator (2) along its entire length, except ion the part inside the bag (6) and in contact with the product, wherein the part of the electrode (1) extending out of the plug is connected to a power source and a device for measuring the electrical current, the resistance or the capacitance of a circuit, wherein said device is electrically connected by closing the circuit between the electrode and the a pressurization water.