Skip to content

Conversation

@eatmoreapple
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings January 28, 2026 01:51
@eatmoreapple eatmoreapple merged commit a41e99a into main Jan 28, 2026
6 checks passed
@eatmoreapple eatmoreapple deleted the fix-get-namespace-error branch January 28, 2026 01:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Prevents panics during cross-namespace SQL fragment resolution (e.g., <include refid="ns.sqlId">) when mapper collections haven’t been initialized yet.

Changes:

  • Add a nil-receiver guard in Mappers.GetMapperByNamespace to safely handle calls on a nil *Mappers.
  • Ensures cross-namespace lookup paths can fail gracefully (returning false) instead of panicking.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants