UnitOfWork icon indicating copy to clipboard operation
UnitOfWork copied to clipboard

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

Open GitHubForCJJ opened this issue 5 years ago • 5 comments

GitHubForCJJ avatar Jul 08 '20 08:07 GitHubForCJJ

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

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

issue-label-bot[bot] avatar Jul 08 '20 08:07 issue-label-bot[bot]

KKF7$~V4RW)HKA7L~QJ2R9U

GitHubForCJJ avatar Jul 08 '20 08:07 GitHubForCJJ

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

GitHubForCJJ avatar Jul 08 '20 08:07 GitHubForCJJ

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

VergilGao avatar Jan 05 '21 06:01 VergilGao

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

xye1989 avatar Jun 21 '21 13:06 xye1989