Skip to content

Fixed crash in hs.image.getExifFromPath() - #3177

Merged
cmsj merged 3 commits into
Hammerspoon:masterfrom
latenitefilms:issue/3176-getExifFromPath-crash
Apr 23, 2022
Merged

cmsj merged 3 commits into
Hammerspoon:masterfrom
latenitefilms:issue/3176-getExifFromPath-crash

Conversation

@latenitefilms

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: pr-fix, pr-change, pr-feature, pr-maintenance

@cmsj cmsj added the pr-fix Pull Request implementing a bug fix label Apr 2, 2022
@cmsj

cmsj commented Apr 2, 2022

Copy link
Copy Markdown
Member

lgtm, although I now wonder what happens if you pass it a URL to a file that either doesn't exist, or isn't an image?

@latenitefilms

Copy link
Copy Markdown
Contributor Author

I tested passing in random text and it just returned nil, didn't try a valid path to a non-image, but I THINK if should return nil too - will test.

Comment thread extensions/image/test_image.lua Resolved
@github-actions

github-actions Bot commented Apr 3, 2022

Copy link
Copy Markdown

View Test Results

0 files  0 suites   0s ⏱️
0 tests 0 ✔️ 0 💤 0 ❌

Results for commit 59186f9.

@cmsj
cmsj merged commit f12ce9d into Hammerspoon:master Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-fix Pull Request implementing a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash - hs.image.getExifFromPath()

3 participants