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

分表操作:第一次调用仓储对象的ChangeTable指定新表时就报这样的错,但是第二次就不会报错,每次都是在运行项目后第一次调用时报错 System.NullReferenceException:“Object reference not set to an instance of an object #142

Open
GitHubForCJJ opened this issue Jul 8, 2020 · 5 comments
Labels

Comments

@GitHubForCJJ
Copy link

No description provided.

@issue-label-bot issue-label-bot bot added the bug label Jul 8, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.67. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@GitHubForCJJ GitHubForCJJ changed the title 分表操作:第一次System.NullReferenceException:“Object reference not set to an instance of an object 分表操作:第一次调用仓储对象的ChangeTable指定新表时就报这样的错,但是第二次就不会报错,每次都是在运行项目后第一次调用时报错 System.NullReferenceException:“Object reference not set to an instance of an object Jul 8, 2020
@GitHubForCJJ
Copy link
Author

KKF7$V4RW)HKA7LQJ2R9U

@GitHubForCJJ
Copy link
Author

我用源码调试了也有问题,我不清楚是不是我调用方式有问题

@VergilGao
Copy link

你好,能提供一下可以复现这个BUG的最小化demo吗?

@xye1989
Copy link

xye1989 commented Jun 21, 2021

直接用你的UnitOfWork.Host的ValuesController接口中,执行到ChangeTable方法就会抛出这个null引用异常了。

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

3 participants