hallvard / plantuml

Embed UML diagrams in files and view them in Eclipse
http://plantuml.sourceforge.net/
212 stars 58 forks source link

Fixed NPE for getSelectionProvider() #26

Closed serbani closed 7 years ago

serbani commented 7 years ago

Not all editors have a selection provider so getSelectionProvider().getSelection() throws a NPE.

hallvard commented 7 years ago

Thanks! I think it should still try to get a diagram from that editor, so I have fixed it in a slightly different way.

serbani commented 7 years ago

Thank you for releasing it so fast!