drahnr / oregano

Schematic capture and circuit simulator
https://ahoi.io
GNU General Public License v2.0
214 stars 39 forks source link

Oregano crashes if an empty (or invalid) file is opened #211

Closed gtrentalancia closed 7 years ago

gtrentalancia commented 7 years ago

Steps to reproduce

  1. Create an empty file with the .oregano extension
  2. Try to open such file in oregano

Expected behaviour

Because the file is not valid, oregano should generate an error message (but not crash !)

Actual behaviour

Oregano crashes.

Configuration

All OSs. All versions.

gtrentalancia commented 7 years ago

Fixed here:

https://github.com/gtrentalancia/oregano/commit/671882a31d78d23af5ac037e297b3a4de133a618