Fixed crashbug in ActiveInstructionPreviewContentProvider
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Mon, 30 Sep 2019 16:34:38 +0000 (18:34 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Mon, 30 Sep 2019 16:35:28 +0000 (18:35 +0200)
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/tables/mi/ActiveInstructionPreviewContentProvider.java

index d3a14ec..97fbd19 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.replace(activeRow, index);
        }
 }