mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Fix possible NRE in node script import
This commit is contained in:
parent
fa710777d7
commit
51f08379eb
@ -154,7 +154,7 @@ public class NodeScriptWindowViewModel : NodeScriptWindowViewModelBase
|
|||||||
.HavingFilter(f => f.WithExtension("json").WithName("Artemis node script"))
|
.HavingFilter(f => f.WithExtension("json").WithName("Artemis node script"))
|
||||||
.ShowAsync();
|
.ShowAsync();
|
||||||
|
|
||||||
if (result == null)
|
if (result == null || result.Length == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user