Skip to content

[Bug] in some cases, err.Error() will be called when err is nil in fact, this will cause nil pointer panic #439

@ztonny

Description

@ztonny

Search before asking

  • I had searched in the issues and found no similar issues.

Version

25.7.0

What's Wrong?

err.Error() is called when err in fact is nil in some cases; e.g. pkg/common/utils/mysql/mysql.go line 232

Image

What You Expected?

will not panic;

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions