File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
ui/src/main/java/edu/wpi/grip/ui/preview Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ private int getIndexInPreviewsOfAStepSocket(OutputSocket<?> socket) {
219219 //Start at the first non-source socket in the list of previewed sockets
220220 long indexInPreviews =
221221 // The socket at this index in the list of displayed sockets has an index in the pipeline less than the socket passed in as "socket"
222- this .previewedSockets .stream ().filter (outSocket -> this .pipeline .getSteps ().indexOf (outSocket .getStep ().get ()) < indexOfStep ).count ();
222+ this .previewedSockets .stream ().filter (outSocket -> outSocket . getStep (). isPresent () && this .pipeline .getSteps ().indexOf (outSocket .getStep ().get ()) < indexOfStep ).count ();
223223 return IntMath .checkedAdd (Math .toIntExact (indexInPreviews ), numbOfSourcePreviews );
224224 }
225225
You can’t perform that action at this time.
0 commit comments