Skip to content

Commit b8ea43f

Browse files
author
Marcin Przepiorowski
committed
fix for crashing dx_get_js_snapshots
1 parent 2582275 commit b8ea43f

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.4.24.1
2+
3+
### Changes
4+
- fix for dx_get_js_snapshots preventing crash
5+
16
## 2.4.24
27

38
### Added

bin/dx_get_js_snapshots.pl

+6-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,12 @@
237237
} else {
238238
$snapsize = $snapshot_sizes{$snapref};
239239
}
240-
$parentname = $databases->getDB($snapshots->getSnapshotContainer($snapref))->getName();
240+
my $parentdbobj = $databases->getDB($snapshots->getSnapshotContainer($snapref));
241+
if (defined($parentdbobj)) {
242+
$parentname = $parentdbobj->getName();
243+
} else {
244+
$parentname = 'N/A';
245+
}
241246
}
242247

243248
if (defined($operation_for_conttf)) {

lib/Toolkit_helpers.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use File::Spec;
2929

3030
use lib '../lib';
3131

32-
our $version = '2.4.24';
32+
our $version = '2.4.24.1';
3333

3434
my $tz = new Date::Manip::TZ;
3535
my $dt = new Date::Manip::Date;

0 commit comments

Comments
 (0)