From 7d2c9a9aeb5fa9a0e2112fd42e140184a4bc2f28 Mon Sep 17 00:00:00 2001 From: Keijiro Takahashi Date: Tue, 18 Sep 2018 22:32:07 +0900 Subject: [PATCH] Bugfix: Crash when no name is given to receiver --- Assets/Klak/Spout/Runtime/SpoutReceiver.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Klak/Spout/Runtime/SpoutReceiver.cs b/Assets/Klak/Spout/Runtime/SpoutReceiver.cs index 844bd90..3398471 100644 --- a/Assets/Klak/Spout/Runtime/SpoutReceiver.cs +++ b/Assets/Klak/Spout/Runtime/SpoutReceiver.cs @@ -109,6 +109,7 @@ void Update() // Plugin lazy initialization if (_plugin == System.IntPtr.Zero) { + if (string.IsNullOrEmpty(_sourceName)) return; _plugin = PluginEntry.CreateReceiver(_sourceName); if (_plugin == System.IntPtr.Zero) return; // Spout may not be ready. }