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

Fix some potential null references #1213

Merged
merged 1 commit into from
Feb 5, 2022
Merged

Fix some potential null references #1213

merged 1 commit into from
Feb 5, 2022

Conversation

nagmat84
Copy link
Collaborator

@nagmat84 nagmat84 commented Feb 3, 2022

As a side result of the discussion on the annotated front-end, @kamil4 pointed out that a photo might not have a thumbnail, if the photo is a video and FFmpeg is not installed (probably there are some other cases, too, but this is the most prominent one).

Hence, I checked with the back-end if there is any code which wrongly assumes that thumbnails always exists. Luckily, the situation has not been as bad as I initially feared, but I found to issues nonetheless.

@nagmat84 nagmat84 requested review from ildyria and kamil4 February 3, 2022 17:59
@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@ildyria ildyria left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@kamil4 kamil4 left a comment

Choose a reason for hiding this comment

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

Looks good!

@nagmat84 nagmat84 merged commit 8c6b200 into master Feb 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix_null_thumb branch February 5, 2022 08:57
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