Skip to content
Snippets Groups Projects
Commit 382f9819 authored by Sebastien Jourdain's avatar Sebastien Jourdain
Browse files

Fix(Java): Handle use case when no graphics configuration available

This should fix bug #16974
parent 42b63d57
Branches
No related tags found
No related merge requests found
......@@ -130,7 +130,10 @@ public class vtkInteractorForwarder implements MouseListener, MouseMotionListene
}
// Update scale factor if needed
this.scaleFactor = vtkInteractorForwarder.getGraphicDeviceScale(e.getComponent().getGraphicsConfiguration().getDevice());
this.scaleFactor = 1;
if (e.getComponent().getGraphicsConfiguration() != null) {
this.scaleFactor = vtkInteractorForwarder.getGraphicDeviceScale(e.getComponent().getGraphicsConfiguration().getDevice());
}
try {
component.getVTKLock().lockInterruptibly();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment