Skip to content

Commit

Permalink
fix for crashing dx_get_js_snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Przepiorowski committed Aug 13, 2024
1 parent 2582275 commit b8ea43f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.4.24.1

### Changes
- fix for dx_get_js_snapshots preventing crash

## 2.4.24

### Added
Expand Down
7 changes: 6 additions & 1 deletion bin/dx_get_js_snapshots.pl
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,12 @@
} else {
$snapsize = $snapshot_sizes{$snapref};
}
$parentname = $databases->getDB($snapshots->getSnapshotContainer($snapref))->getName();
my $parentdbobj = $databases->getDB($snapshots->getSnapshotContainer($snapref));
if (defined($parentdbobj)) {
$parentname = $parentdbobj->getName();
} else {
$parentname = 'N/A';
}
}

if (defined($operation_for_conttf)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Toolkit_helpers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use File::Spec;

use lib '../lib';

our $version = '2.4.24';
our $version = '2.4.24.1';

my $tz = new Date::Manip::TZ;
my $dt = new Date::Manip::Date;
Expand Down

0 comments on commit b8ea43f

Please sign in to comment.