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] Paint Data: Fix crash on empty data #2399

Merged
merged 2 commits into from Jun 16, 2017
Merged

[FIX] Paint Data: Fix crash on empty data #2399

merged 2 commits into from Jun 16, 2017

Conversation

jerneju
Copy link
Contributor

@jerneju jerneju commented Jun 13, 2017

Issue

We create Paint Data widget, draw nothing, and save created workflow.
screenshot_20170613_100755

Then we open it:
screenshot_20170613_100840

Description of changes
Includes
  • Code changes
  • Tests
  • Documentation

@jerneju
Copy link
Contributor Author

jerneju commented Jun 13, 2017

@codecov-io
Copy link

codecov-io commented Jun 13, 2017

Codecov Report

Merging #2399 into master will increase coverage by 0.29%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2399      +/-   ##
==========================================
+ Coverage   73.87%   74.17%   +0.29%     
==========================================
  Files         322      322              
  Lines       55835    55935     +100     
==========================================
+ Hits        41248    41487     +239     
+ Misses      14587    14448     -139

@lanzagar lanzagar self-assigned this Jun 16, 2017
@lanzagar lanzagar added this to the 3.4.4 milestone Jun 16, 2017
@@ -797,7 +797,7 @@ def __init__(self):
self.class_model.rowsInserted.connect(self._class_count_changed)
self.class_model.rowsRemoved.connect(self._class_count_changed)

if self.data is None:
if self.data is None or not len(self.data):
Copy link
Contributor

Choose a reason for hiding this comment

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

if not self.data:

@lanzagar lanzagar changed the title [FIX] Paint Data: not crash when no data [FIX] Paint Data: Fix crash on empty data Jun 16, 2017
@lanzagar lanzagar merged commit 6cd35ad into biolab:master Jun 16, 2017
@jerneju jerneju deleted the load-empty-data-paintdata branch June 21, 2017 07:20
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.

None yet

3 participants