diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 919f5edf2..5f8e41eca 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -283,7 +283,7 @@ sub noderm if (scalar(@$nodes)) { for my $nn ( @$nodes ) { my $nt = xCAT::DBobjUtils->getnodetype($nn); - if ( $nt =~ /^(cec|frame)$/ ) { + if ( $nt and $nt =~ /^(cec|frame)$/ ) { my $cnodep = xCAT::DBobjUtils->getchildren($nn); if ($cnodep) { my $cnode = join ',', @$cnodep;