Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for nil in ipfs.NFTMetadata to avoid panic #243

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

leszko
Copy link
Contributor

@leszko leszko commented Jul 22, 2024

@leszko leszko requested a review from a team as a code owner July 22, 2024 12:32
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.

Project coverage is 16.45642%. Comparing base (69c3cc5) to head (d46cfde).

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main        #243         +/-   ##
===================================================
- Coverage   16.48478%   16.45642%   -0.02836%     
===================================================
  Files             16          16                 
  Lines           1741        1744          +3     
===================================================
  Hits             287         287                 
- Misses          1428        1431          +3     
  Partials          26          26                 
Files Coverage Δ
task/runner.go 17.93814% <0.00000%> (-0.11165%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69c3cc5...d46cfde. Read the comment docs.

Files Coverage Δ
task/runner.go 17.93814% <0.00000%> (-0.11165%) ⬇️

@leszko leszko merged commit e3c1aba into main Jul 22, 2024
10 of 12 checks passed
@leszko leszko deleted the rafal/fix-panic branch July 22, 2024 12:44
if err != nil {
glog.Errorf("Error unpinning metadata from IPFS %v", ipfs.NFTMetadata.CID)
return err
if ipfs.NFTMetadata != nil {
Copy link
Member

Choose a reason for hiding this comment

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

Wow didnt remember we could have IPFS exports without NFT. Maybe some really old assets

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.

3 participants