Skip to content

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

Merged
lanzagar merged 2 commits intobiolab:masterfrom
jerneju:load-empty-data-paintdata
Jun 16, 2017
Merged

[FIX] Paint Data: Fix crash on empty data#2399
lanzagar merged 2 commits intobiolab:masterfrom
jerneju:load-empty-data-paintdata

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
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.

3 participants