Open andreasplesch opened 6 years ago
In the checkNRRD function line https://github.com/scijs/nrrd-js/blob/master/nrrd.js#L1131 causes a problem if ret.data is undefined. Then accessing ret.data.length is not possible and causes a type error.
Although it would be silly, a no data nrrd file may be legal ?
In the checkNRRD function line https://github.com/scijs/nrrd-js/blob/master/nrrd.js#L1131 causes a problem if ret.data is undefined. Then accessing ret.data.length is not possible and causes a type error.