]> gerrit.simantics Code Review - simantics/platform.git/commit
Add isDisposed checking to avoid unexpected NPE
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 30 Sep 2020 05:41:03 +0000 (08:41 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 30 Sep 2020 05:41:03 +0000 (08:41 +0300)
commit930da66f9b2d7d1acba3e5dc805a323933abb780
tree74be78a308a7f28e10d3e7ca561f1c3d4898b634
parentadcb8de7070323f1f2f33865cfede520dec72333
Add isDisposed checking to avoid unexpected NPE

In this case ctx.getContentContext() would return null when the canvas
context was already disposed.

gitlab #614
bundles/org.simantics.g2d/src/org/simantics/g2d/gallery/GalleryViewer.java