Skip to content

Commit

Permalink
Fixup #129 (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonko0493 authored Apr 9, 2023
1 parent c78665b commit 1982173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SerialLoops/Editors/ScriptEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ private void UpdatePreview()
SKCanvas canvas = new(previewBitmap);
canvas.DrawColor(SKColors.Black);

ScriptItemCommand currentCommand = ((ScriptCommandSectionEntry)_commandsPanel.Viewer.SelectedItem).Command;
ScriptItemCommand currentCommand = ((ScriptCommandSectionEntry)_commandsPanel.Viewer.SelectedItem)?.Command;
if (currentCommand is not null)
{
List<ScriptItemCommand> commands = currentCommand.WalkCommandGraph(_commands, _script.Graph);
Expand Down

0 comments on commit 1982173

Please sign in to comment.