Skip to content

Commit

Permalink
fix: Throwing new NullReference instead of 'null' in samples (#941)
Browse files Browse the repository at this point in the history
* throwing new nullreference instead of 'null'

* removed debug
  • Loading branch information
bitsandfoxes authored Aug 18, 2022
1 parent abf67ba commit f325a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/unity-of-bugs/Assets/Scripts/BugFarmButtons.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ private void Start()
public void AssertFalse() => Assert.AreEqual(true, false);

[MethodImpl(MethodImplOptions.NoInlining)]
public void ThrowNull() => throw null;
public void ThrowNull() => throw new NullReferenceException();

public void ThrowExceptionAndCatch()
{
Expand Down

0 comments on commit f325a3c

Please sign in to comment.