omniJS – a pair of related ways to crash OG 7.5 test

At present (OG 7.5 TEST BUILD v181.3 r293438), if we have a shape with no incoming lines, but with an outgoing line (unconnected to any other shape at its head),

we can crash OG 7.5 test (v181.3 r293438) by querying the incomingLines property of that shape.

(function () {

    var
        seln = document.windows[0].selection,
        cnv = seln.canvas,
        gs = seln.graphics,
        g = gs[0];

    // CRASHES OG 7.5 TEST BUILD (v181.3 r293438)
    // if g is a shape with only an outgoing line, and that line
    // is not connected, at its head, to any other shape.
    return g.incomingLines;

})();

It turns out that the mirror-image crash also works:

if we have a shape with only an incoming line (unconnected at its tail to any other shape)

we can crash OG by querying the .outgoingLines property of that shape.

(function () {

    var
        seln = document.windows[0].selection,
        cnv = seln.canvas,
        gs = seln.graphics,
        g = gs[0];

    // CRASHES OG 7.5 TEST BUILD (v181.3 r293438)
    // if g is a shape with only an incoming line, and that line
    // is not connected, at its tail, to any other shape.
    return g.outgoingLines;

})();

PS of course the selected graphic doesn’t have to be a shape – it can be any graphic, including a line, which inherits .incomingLines or .outgoingLines

Crash when selected graphic has no incoming lines, but does have an outgoing line which is connected to no other graphic at its head:

    document.windows[0]
        .selection
        .graphics[0]
        .incomingLines;

Or

Crash when selected graphic has no outgoing lines, but does have an incoming line which is connected to no other graphic at its tail:

    document.windows[0]
        .selection
        .graphics[0]
        .outgoingLines;

UPDATE

This crash no longer occurs –

It has been ( very rapidly ) fixed in 7.5 test (v181.3 r293594)

Thanks !