Search Issue Tracker
Fixed in 2018.2.X
Votes
5
Found in
2017.2
2017.3.0f3
Issue ID
981473
Regression
No
[IL2CPP][.NET 4.6] Creating lambdas with IL2CPP and .NET 4.6 results in NullReferenceException
NullRef exceptions appear when trying to create lambda expressions with IL2CPP and .NET 4.6.
Steps to reproduce:
1) Open the attached project.
2) Build & Run on iOS or Android.
A NullReferenceException is thrown:
NullReferenceException: Object reference not set to an instance of an object.
at System.Linq.Expressions.Expression.CreateLambda (System.Type delegateType, System.Linq.Expressions.Expression body, System.String name, System.Boolean tailCall, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Expression.Lambda[TDelegate] (System.Linq.Expressions.Expression body, System.String name, System.Boolean tailCall, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Expression.Lambda[TDelegate] (System.Linq.Expressions.Expression body, System.Boolean tailCall, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Expression.Lambda[TDelegate] (System.Linq.Expressions.Expression body, System.Linq.Expressions.ParameterExpression[] parameters) [0x00000] in <00000
This does not occur when using Mono2x or .NET 3.5.
Reproduces on iOS and Android.
Reproduced on:
2018.2.0a1, 2017.3.0p2, 2017.2.1p2
Did not reproduce:
2017.1.2p3, 2017.1.0a6
Devices:
iPhone 8 Plus iOS 11.2.1
Samsung Galaxy S8 Android 7.0
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Baked Lightmap ”View” button text is aligned incorrectly
- Lightmap Asset icon changes colours after Baked Lightmap Viewer window is opened
- VideoClipImporter preset not applied when applying Preset Selector on already imported video clips
- Frame Debugger gets disabled when any Editor window is maximised and minimised
- TextMeshPro InputField view is not updated when OnEndEdit is triggered
Add comment