Added a constructor for ModelSplitterParams; added a TODO
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / tables / mi / ActiveInstructionPreviewContentProvider.java
index d3a14ec..7078f9a 100644 (file)
@@ -56,6 +56,7 @@ public class ActiveInstructionPreviewContentProvider implements InstructionTable
        @Override
        public void updateElement(int index)
        {
-               viewer.replace(activeRow, index);
+               if (activeRow != null && !viewer.getControl().isDisposed())
+                       viewer.replace(activeRow, index);
        }
 }