Search Issue Tracker

Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.

Postponed

Votes

0

Found in

5.3.4p4

Issue ID

810754

Regression

No

Casting from System.Action<String> to System.Action doesn't fail, instead throws a NullReferenceException when calling delegate

Scripting

-

Steps to reproduce:

1. Open attached project (null_stripped.zip)
2. Open and play 'Test' scene

Expected behaviour: compilation error should be thrown because the cast from System.Action<String> to System.Action should not be possible.
Actual behaviour: The game starts without any errors. If you click the 'Print' button, a 'NullReferenceException' will be thrown instead.
------
The issue will be addressed as part of C# compiler upgrade effort.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.