Fixed SimulationView spamming exceptions in some situations:
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / tables / mi / ActiveInstructionPreviewContentProvider.java
index 97fbd19..7078f9a 100644 (file)
@@ -56,7 +56,7 @@ public class ActiveInstructionPreviewContentProvider implements InstructionTable
        @Override
        public void updateElement(int index)
        {
-               if (activeRow != null)
+               if (activeRow != null && !viewer.getControl().isDisposed())
                        viewer.replace(activeRow, index);
        }
 }