openworm / tracker-commons

Compilation of information and code bases related to open-source trackers for C. elegans
11 stars 12 forks source link

Scala writing can fail with a MatchError #123

Closed Ichoran closed 7 years ago

Ichoran commented 8 years ago

It is possible to read a file that, when written, fails with

Left(Error while writing file /path/to/myfile.json
scala.MatchError: nullnull)

This should not be possible. A valid read should always be writable; if there is an error, it should occur during reading.

Ichoran commented 8 years ago

Note--example has not been minimzed, and the sample data file provided by Avelino Javer is too large to attach here. Ideally when the bug is found a small test case should be added to prevent regressions.

Ichoran commented 7 years ago

I believe this was related to the JSON parser issue, and should no longer occur.