Skip to content

Commit

Permalink
GUI: Avoid exception when no basedata to describe
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan committed Apr 28, 2022
1 parent 3f1891b commit 46a11e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Biodiverse/GUI/GUIManager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,8 @@ sub do_describe_basedata {
my $self = shift;

my $bd = $self->{project}->get_selected_base_data;

return if !$bd;

my $description = $bd->describe;

Expand Down

0 comments on commit 46a11e1

Please sign in to comment.