Skip to content

Fix tagging with empty data#3102

Merged
TonyCTHsu merged 2 commits into
masterfrom
tonycthsu/fix-tags
Sep 4, 2023
Merged

Fix tagging with empty data#3102
TonyCTHsu merged 2 commits into
masterfrom
tonycthsu/fix-tags

Conversation

@TonyCTHsu

Copy link
Copy Markdown
Collaborator

fixes #3088

What does this PR do?

An object includes Tagging module, but #tags method raise NoMethodError: undefined method 'merge' for nil:NilClass or TypeError: no implicit conversion of nil into Hash

Because the instance variables are nil.

The fix is to replace instance variable with protected attribute reader.

@TonyCTHsu
TonyCTHsu requested a review from a team September 1, 2023 11:46
@TonyCTHsu TonyCTHsu added this to the 1.15.0 milestone Sep 1, 2023
@TonyCTHsu TonyCTHsu changed the title Fix tagging Fix tagging with empty data Sep 1, 2023
@codecov-commenter

codecov-commenter commented Sep 1, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.15%. Comparing base (0318c77) to head (8131af7).
Report is 5264 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3102   +/-   ##
=======================================
  Coverage   98.15%   98.15%           
=======================================
  Files        1323     1323           
  Lines       75085    75094    +9     
  Branches     3421     3421           
=======================================
+ Hits        73702    73711    +9     
  Misses       1383     1383           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@TonyCTHsu
TonyCTHsu merged commit 0e35673 into master Sep 4, 2023
@TonyCTHsu
TonyCTHsu deleted the tonycthsu/fix-tags branch September 4, 2023 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tagging.rb giving me an undefined method 'merge' for nil::NilClass

4 participants