scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
64 stars 17 forks source link

Trying to export a STL file throws a NullPointerException #57

Closed rimadoma closed 6 years ago

rimadoma commented 6 years ago

No matter how you create a view with a mesh (add your own programmatically, run SciView>Add Box...), trying to export an STL file causes a NullPointerException at https://github.com/scenerygraphics/SciView/blob/master/src/main/java/sc/iview/io/ExportSTL.java#L30 because there are no viewers in DefaultSciViewService.

Steps to reproduce

  1. Run ImageJ
  2. Run SciView >Add>Box
  3. Run _SciView>Export>STL__

Environment

rimadoma commented 6 years ago

I also get a NullPointerException at https://github.com/scenerygraphics/SciView/blob/master/src/main/java/sc/iview/viewing/RotateView.java#L20 when running SciView>View>Rotate, because there are no viewers. NPEs from anything else in the View-submenu. This is probably related to the same bug. Let me know if you want me to create separate issues.

kephale commented 6 years ago

I believe this is resolved now.