Null Pointer Exception Potential#207
Conversation
|
Why we have npe here? What is the case? |
|
Please add more scenario description here, why we need this kind of check? |
because Entity is interface, go interface contains type and data, when type is not nil, the interface will not be nil, but the data can be nil, show some code example: type ImpEntity struct { func (e *ImpEntity) Do() { func main() { func Test(e Entity) { |
|
Then, can we use the |
|
Also, we have change the implementation into the core, please sync the upstream to fix it. |
No description provided.