From 08f509607f77575fc060cf60b20cb675a4a4f1c1 Mon Sep 17 00:00:00 2001 From: kjjohnsen Date: Wed, 16 Nov 2022 01:07:31 -0500 Subject: [PATCH] fix first time errors --- unity_package/Runtime/VELConnectManager.cs | 2 +- unity_package/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": [],