Skip to content

Commit

Permalink
Fixed a bug in NativeDataPoint that created a null for data
Browse files Browse the repository at this point in the history
  • Loading branch information
bruskajp committed Oct 30, 2024
1 parent 327f4f4 commit 4fd6694
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Runtime/Scripts/DataManagement/DataPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public NativeDataPoint(string type, int id, DateTime time, Dictionary<string, ob
this.type = type.ToNativeText();
this.time = time;
this.id = id;
this.data = data.ToJSON().ToNativeText();
this.data = (data ?? new()).ToJSON().ToNativeText();
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.bruskatech.psyforge",
"displayName": "PsyForge",
"version": "0.1.0",
"version": "0.1.1",
"unity": "2022.3",
"description": "The package provides a framework and tools for building 2D and 3D psychology/neuroscience experiments.",
"keywords": [
Expand Down

0 comments on commit 4fd6694

Please sign in to comment.