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] File: Fix crash when last_path is None #1961

Merged
merged 1 commit into from
Jan 27, 2017

Conversation

janezd
Copy link
Contributor

@janezd janezd commented Jan 26, 2017

https://sentry.io/biolab/orange3/issues/196743788/

The error also appeared when I tried to reproduce some unrelated bugs.

Description of changes

Check whether last_path is None before checking its size.

Includes
  • Code changes
  • Tests

@janezd
Copy link
Contributor Author

janezd commented Jan 26, 2017

@astaric
Copy link
Member

astaric commented Jan 26, 2017

Could you also write a test that reproduces the problem?

@janezd
Copy link
Contributor Author

janezd commented Jan 26, 2017

I didn't think so. It turned out it's trivial.

@codecov-io
Copy link

codecov-io commented Jan 26, 2017

Current coverage is 89.53% (diff: 100%)

Merging #1961 into master will not change coverage

@@             master      #1961   diff @@
==========================================
  Files            90         90          
  Lines          9179       9179          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           8218       8218          
  Misses          961        961          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update a8f71bc...4781444

@janezd janezd added this to the 3.3.11 milestone Jan 26, 2017
@janezd janezd changed the title File: Fix crash when last_path is None [FIX] File: Fix crash when last_path is None Jan 26, 2017
@lanzagar lanzagar merged commit f3ebda7 into biolab:master Jan 27, 2017
astaric pushed a commit that referenced this pull request Feb 3, 2017
[FIX] File: Fix crash when last_path is None
(cherry picked from commit f3ebda7)
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.

4 participants