An agricultural machine comprising: - a frame which is configured to be attached to a vehicle in order to move the agricultural machine in a normal direction of travel, - a bearing arm construction (6, 7, 8) having at least one bearing arm, which bearing arm construction is pivotably connected to the frame so as to be pivotable about one or more pivot axes, and - a plurality of processing members with processing elements for working the land or processing a crop, wherein the processing members are at least displaceable between an operating position and a transport position by pivoting of the least one bearing arm construction about the one or more pivot axes, wherein the agricultural machine comprises a movable shielding construction to at least partially shield the processing members in the transport position, wherein the movable shielding construction comprises two shielding beams located at opposite sides of the agricultural machine, wherein the shielding beams are movable between a shielding position for shielding at least partially the processing members, and a lower position in which movement of the processing members between the operating position and the transport position is possible, wherein the movable shielding construction is configured to move the shielding beams upwards and backwards with respect to the normal direction of travel when the shielding beams are moved from the lower position to the shielding position, wherein the agricultural machine comprises a safety device configured to prevent that the processing members can be moved between the operating position and the transport position, when the movable shielding construction is arranged in the shielding position, and characterised in that the safety device comprises a shut-off valve arranged in a hydraulic drive circuit of the bearing arm construction, wherein the shut-off valve is movable between a closed position and an open position, and wherein the shut-off valve is mechanically linked to the movable shielding construction so that the shut-off valve is in the closed position when the shielding beams are in the shielding position, and the shut-off valve is arranged in the open position when the shielding beams are in the lower position. - a frame which is configured to be attached to a vehicle in order to move the agricultural machine in a normal direction of travel, - a bearing arm construction (6, 7, 8) having at least one bearing arm, which bearing arm construction is pivotably connected to the frame so as to be pivotable about one or more pivot axes, and - a plurality of processing members with processing elements for working the land or processing a crop, wherein the processing members are at least displaceable between an operating position and a transport position by pivoting of the least one bearing arm construction about the one or more pivot axes, wherein the agricultural machine comprises a movable shielding construction to at least partially shield the processing members in the transport position, wherein the movable shielding construction comprises two shielding beams located at opposite sides of the agricultural machine, wherein the shielding beams are movable between a shielding position for shielding at least partially the processing members, and a lower position in which movement of the processing members between the operating position and the transport position is possible, wherein the movable shielding construction is configured to move the shielding beams upwards and backwards with respect to the normal direction of travel when the shielding beams are moved from the lower position to the shielding position, wherein the agricultural machine comprises a safety device configured to prevent that the processing members can be moved between the operating position and the transport position, when the movable shielding construction is arranged in the shielding position, and characterised in that the safety device comprises a shut-off valve arranged in a hydraulic drive circuit of the bearing arm construction, wherein the shut-off valve is movable between a closed position and an open position, and wherein the shut-off valve is mechanically linked to the movable shielding construction so that the shut-off valve is in the closed position when the shielding beams are in the shielding position, and the shut-off valve is arranged in the open position when the shielding beams are in the lower position.