Closed ferdinandhof closed 3 years ago
It is not fix, we should investigate why it is null
, no need monkey patching to fix the problems
Also we have originalSourceLines !== null
check
I am really no expert but doesn't originalSourceLines.length ? ... : ...
do a check against undefined
or null
? and since originalSourceLines.length
can never produce undefined
or null
redundant in this case?
Please provide steps how we can reproduce it
Also fixes without tests is bad practice
Tests need to be approved by a maintainer. Can't run those workflows. I will try to figure out if I can get a bare project to produce this error.
This fixed a "Cannot read property 'length' of null" for me when originalSourceLines is null for some reason (happened on require("xlsx") in an electron forge project under Windows).