Skip to content

Commit 09e0c1c

Browse files
committed
Fixed regression
1 parent 76fac9e commit 09e0c1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DotNext.Tests/Runtime/InteropServices/PointerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static void NullPointer()
136136
{
137137
var ptr = default(Pointer<int>);
138138
Throws<NullPointerException>(() => ptr[0] = 10);
139-
Throws<NullPointerException>(() => ptr.Value = 10);
139+
Throws<NullReferenceException>(() => ptr.Value = 10);
140140
Empty(ptr.ToByteArray(10));
141141
True(ptr.Bytes.IsEmpty);
142142
Equal(Pointer<int>.Null, ptr);

0 commit comments

Comments
 (0)