Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.NullReferenceException when comparing with a null Level #169

Closed
FreeAndNil opened this issue Aug 14, 2024 · 1 comment
Closed

System.NullReferenceException when comparing with a null Level #169

FreeAndNil opened this issue Aug 14, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@FreeAndNil
Copy link
Contributor

  Level? left = null;
  Level? right = null;
  Assert.IsFalse(left < right);

leads to

System.NullReferenceException : Object reference not set to an instance of an object.

Stack Trace: 
Level.op_LessThan(Level l, Level r) line 346
LevelTest.LevelCompare() line 37

@FreeAndNil FreeAndNil added the bug label Aug 14, 2024
@FreeAndNil FreeAndNil added this to the 3.0.0 milestone Aug 14, 2024
@FreeAndNil FreeAndNil self-assigned this Aug 14, 2024
@FreeAndNil FreeAndNil changed the title System.NullReferenceException when comparing with a null level System.NullReferenceException when comparing with a null Level Aug 14, 2024
FreeAndNil added a commit that referenced this issue Aug 15, 2024
…ption-in-Level-comparison

#169 fixed NullReferenceException when comparing with a null Level
@FreeAndNil
Copy link
Contributor Author

Fixed in 3.0.0-Preview.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant