Issue
Path’s strokeEnabled
property shows as true on a specific image.
Steps to reproduce
-
Outline stroke the yellow circle
-
Code:
node.forEach(function (childNode, i) { if (childNode.strokeEnabled) { //do one thing } else { //kep the original path } });
Expected Behavior
A similar circle (the red one, the smaller one), doesn’t have a border when performing outline stroke - doesn’t error and doesn’t modify the shape.
Actual Behavior
When outlining the yellow (big) circle this will give you the “cannot read property ‘value’ of null”. This is related to creating a new element with the same border colour on scenegraph and the colour missing. The circle does not have a border. Thus, it should not be trying to create objects from that border.
Additional information
Circle that errors.xd (17.7 KB)
It doesn’t happen with anything else