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: Object reference not set to an instance of an object. - error #7

Closed
ignatandrei opened this issue Aug 11, 2021 · 2 comments

Comments

@ignatandrei
Copy link

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
Copy link
Author

this code

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

gives null

@mgravell
Copy link
Member

closing because taking new direction: DapperLib/Dapper#1909

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

No branches or pull requests

2 participants