Uh oh!
There was an error while loading. Please reload this page.
fixed 'bad access: nil dereference' when calling Error() method if it… - #577
fixed 'bad access: nil dereference' when calling Error() method if it…#577henng wants to merge 2 commits into
Conversation
…self is a nil reference.
Codecov Report
@@ Coverage Diff @@## master #577 +/- ##
==========================================
- Coverage 71.82% 71.81% -0.02%
==========================================
Files 32 32 Lines 7834 7838 +4 ==========================================
+ Hits 5627 5629 +2 - Misses 1676 1677 +1 - Partials 531 532 +1
Continue to review full report at Codecov.
|
| // Error implements error interface. | ||
| func (e *Error) Error() string { | ||
| if reflect2.IsNil(e) { |
There was a problem hiding this comment.
why e == nil is not enough? *Error is a concrete type unlike interface{}.
| } | ||
| func (e *Error) getMsg() string { | ||
| if reflect2.IsNil(e) { |
这个现在有啥别的修改?model/ddl中的job也遇到这个问题。 由于job中的error为nil也是这个问题。 |
tiancaiamao
commented
Mar 25, 2021
Ping @henng ? |
ti-chi-bot
commented
Jul 16, 2021
@henng: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
codecov-commenter
commented
Aug 3, 2025
Codecov Report❌ Patch coverage is Please upload reports for the commit 4a34588 to get more accurate results. Additional details and impacted files@@ Coverage Diff @@## master #577 +/- ##
==========================================
- Coverage 71.82% 71.81% -0.02%
==========================================
Files 32 32 Lines 7834 7838 +4 ==========================================
+ Hits 5627 5629 +2 - Misses 1676 1677 +1 - Partials 531 532 +1 🚀 New features to boost your workflow:
|
SEE #576