Skip to content

Commit 5ddb25d

Browse files
committed
Avoid _jsonArr clear exception
1 parent 30e2c4f commit 5ddb25d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dotnet/src/dotnetframework/GxClasses/Domain/GxGenericCollections.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ public void RemoveElement(int idx)
128128
}
129129
public virtual void ClearCollection()
130130
{
131-
_jsonArr.Clear();
131+
if (_jsonArr!=null)
132+
_jsonArr.Clear();
132133
base.Clear();
133134
}
134135
public virtual object Clone()

0 commit comments

Comments
 (0)