diff --git a/unity_package/Runtime/VELConnectManager.cs b/unity_package/Runtime/VELConnectManager.cs index 3446c3d..368347a 100644 --- a/unity_package/Runtime/VELConnectManager.cs +++ b/unity_package/Runtime/VELConnectManager.cs @@ -272,7 +272,7 @@ namespace VELConnect foreach (KeyValuePair elem in state.device.data) { string oldValue = null; - lastState?.device.data.TryGetValue(elem.Key, out oldValue); + lastState?.device?.data?.TryGetValue(elem.Key, out oldValue); if (elem.Value != oldValue) { try diff --git a/unity_package/package.json b/unity_package/package.json index a83c833..da6849a 100644 --- a/unity_package/package.json +++ b/unity_package/package.json @@ -1,7 +1,7 @@ { "name": "edu.uga.engr.vel.vel-connect", "displayName": "VEL-Connect", - "version": "1.0.1", + "version": "1.0.2", "unity": "2019.1", "description": "Web-based configuration for VR applications", "keywords": [],