DapperAOT icon indicating copy to clipboard operation
DapperAOT copied to clipboard

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

Open ignatandrei opened this issue 2 years ago • 1 comments

I have a Roslyn Source Code Generators examples with code on GitHub - https://github.com/ignatandrei/rsCG_examples

The code is pretty simple , but it gives the error System.NullReferenceException: Object reference not set to an instance of an object.

The line is

__dapper__result = global::Dapper.TypeReader.TryGetReader<global::DapperExampleDAL.Person[]>()!.Read(__dapper__reader, ref __dapper__tokenBuffer);

You can find the example at https://github.com/ignatandrei/rsCG_examples , folder later_aotdapper\src\dapperexample
Please help

ignatandrei avatar Aug 11 '21 23:08 ignatandrei

this code

global::Dapper.TypeReader.TryGetReader<global::DapperExampleDAL.Person[]>();

gives null

ignatandrei avatar Aug 12 '21 00:08 ignatandrei

closing because taking new direction: https://github.com/DapperLib/Dapper/issues/1909

mgravell avatar Jun 15 '23 14:06 mgravell