Skip to content

Commit 694539d

Browse files
[Refactor] DataExtension to throw ArgumentNullException instead of NullReferenceException
1 parent beed054 commit 694539d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SysML2.NET.Serializer.Xmi/Extensions/DataExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static bool QueryIsValidIdRef(this IData data, IXmiElementOriginMap eleme
4040
{
4141
if (data == null)
4242
{
43-
throw new NullReferenceException(nameof(data));
43+
throw new ArgumentNullException(nameof(data));
4444
}
4545

4646
if (elementOriginMap == null || currentFileUri == null)

0 commit comments

Comments
 (0)