aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Shared/disk_backend/Part.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ManaTools/Shared/disk_backend/Part.pm')
-rw-r--r--lib/ManaTools/Shared/disk_backend/Part.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ManaTools/Shared/disk_backend/Part.pm b/lib/ManaTools/Shared/disk_backend/Part.pm
index 3e8a3f35..bf31c426 100644
--- a/lib/ManaTools/Shared/disk_backend/Part.pm
+++ b/lib/ManaTools/Shared/disk_backend/Part.pm
@@ -412,7 +412,9 @@ sub _diff {
sub diff {
my $self = shift;
my $partstate = shift;
+ # get the other part
my $part = $self->part_state($partstate);
+ return () if (!defined $part);
return $self->_diff($part, $partstate);
}