Fix possible NRE in node script import

This commit is contained in:
Diogo Trindade committed 2023-05-20 22:15:08 +01:00
1 parent fa710777d7
commit 51f08379eb
1 file changed
+1 -1
@@ -154,7 +154,7 @@ public class NodeScriptWindowViewModel : NodeScriptWindowViewModelBase
.HavingFilter(f => f.WithExtension("json").WithName("Artemis node script"))
.ShowAsync();
if (result == null)
if (result == null || result.Length == 0)
return;
try