Data-processing device for determining a shortest improper current path between at least two electrically conductive components, to which a different electrical potential is applied during normal operation, of an electrical assembly having a plurality of electrically conductive and electrically insulating components, with: a) a component detection unit for detecting all components of the assembly and their geometry, b) an arrangement detection unit for detecting the arrangement of the components in the assembly relative to one another, c) a material detection unit for detecting material properties of the detected components and/or assigning material properties to the components, d) a conductivity determination unit for determining the electrically conductive components on the basis of the material properties and their electrical potential during normal operation, e) a selection unit for selecting a first electrically conductive component, to which a first electrical potential during normal operation is applied, f) a beam generation unit for generating a plurality of straight and/or direction-changing beams, the starting point of which forms the first component, by convex component edges being determined for the components detected in a rasterized digital manner and the beams which strike a convex component edge directly being determined, and wherein a point of the beam with the shortest distance between the first electrical component and the convex component edge is determined as a point of intersection, in which a silhouette criterion is fulfilled, wherein the silhouette criterion specifies whether an edge point is located on a silhouette edge of the scene, as a result of which beams which strike a component directly are easily determined and can be excluded from the further processing, g) a determination unit for determining, as a function of the geometry and arrangement of the detected components, which of the beams strike a second electrical component of the assembly, which is classified as electrically conductive on the basis of its material properties, wherein the determination unit is embodied to determine a point of impact of the respective beam on the second component, provided there is one, h) a length determination unit for determining path lengths from the respective starting point to the respective point of impact of those beams which strike the second component starting from the first component, and i) an evaluation unit for determining and outputting the shortest of the determined path lengths as the shortest improper current path. a) a component detection unit for detecting all components of the assembly and their geometry, b) an arrangement detection unit for detecting the arrangement of the components in the assembly relative to one another, c) a material detection unit for detecting material properties of the detected components and/or assigning material properties to the components, d) a conductivity determination unit for determining the electrically conductive components on the basis of the material properties and their electrical potential during normal operation, e) a selection unit for selecting a first electrically conductive component, to which a first electrical potential during normal operation is applied, f) a beam generation unit for generating a plurality of straight and/or direction-changing beams, the starting point of which forms the first component, by convex component edges being determined for the components detected in a rasterized digital manner and the beams which strike a convex component edge directly being determined, and wherein a point of the beam with the shortest distance between the first electrical component and the convex component edge is determined as a point of intersection, in which a silhouette criterion is fulfilled, wherein the silhouette criterion specifies whether an edge point is located on a silhouette edge of the scene, as a result of which beams which strike a component directly are easily determined and can be excluded from the further processing, g) a determination unit for determining, as a function of the geometry and arrangement of the detected components, which of the beams strike a second electrical component of the assembly, which is classified as electrically conductive on the basis of its material properties, wherein the determination unit is embodied to determine a point of impact of the respective beam on the second component, provided there is one, h) a length determination unit for determining path lengths from the respective starting point to the respective point of impact of those beams which strike the second component starting from the first component, and i) an evaluation unit for determining and outputting the shortest of the determined path lengths as the shortest improper current path.