make more things null instead

pull/1/head
Anton Franzluebbers 2024-02-22 16:48:31 -05:00
parent 703c29f2e9
commit d3f466d3c4
3 changed files with 3 additions and 12 deletions

View File

@ -259,15 +259,7 @@ namespace VELConnect
{
state = JsonConvert.DeserializeObject<State>(json);
if (state == null) return;
if (state.room == null) {
state.room = new State.DataBlock
{
category = "room",
modified_by = "Unity",
data = null,
block_id = Application.productName + "_" + VelNetManager.Room
};
}
if (state.room == null) return;
bool isInitialState = false;
@ -923,7 +915,7 @@ namespace VELConnect
case UnityWebRequest.Result.ConnectionError:
case UnityWebRequest.Result.DataProcessingError:
case UnityWebRequest.Result.ProtocolError:
Debug.LogError(url + ": Error: " + webRequest.error + "\n" + webRequest.downloadHandler.text + "\n" + Environment.StackTrace);
Debug.LogWarning(url + ": Error: " + webRequest.error + "\n" + webRequest.downloadHandler.text + "\n" + Environment.StackTrace);
failureCallback?.Invoke(webRequest.error);
break;
case UnityWebRequest.Result.Success:

View File

@ -73,7 +73,6 @@ namespace VELConnect
loading = false;
}, s =>
{
Debug.LogError(s);
loading = false;
});
}

View File

@ -1,7 +1,7 @@
{
"name": "edu.uga.engr.vel.vel-connect",
"displayName": "VEL-Connect",
"version": "4.0.4",
"version": "4.0.5",
"unity": "2019.1",
"description": "Web-based configuration for VR applications",
"keywords": [],