1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 13:28:33 +00:00

Fix possible NRE in node script import

This commit is contained in:
Diogo Trindade 2023-05-20 22:15:08 +01:00
parent fa710777d7
commit 51f08379eb

View File

@ -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