equal
deleted
inserted
replaced
327 { |
327 { |
328 $uid = $feat->{uid}; |
328 $uid = $feat->{uid}; |
329 |
329 |
330 $featRef = $FeatureMap{$uid}; |
330 $featRef = $FeatureMap{$uid}; |
331 |
331 |
332 if( $featRef->{include} == 1 ) |
332 if( defined ($featRef) && defined ($featRef->{include}) && $featRef->{include} == 1 ) |
333 { |
333 { |
334 &ERROR("The feature $feat->{name} was added into the exclude as well as include list"); |
334 &ERROR("The feature $feat->{name} was added into the exclude as well as include list"); |
335 return 0; |
335 return 0; |
336 } |
336 } |
337 elsif($featRef->{exclude} == 1) |
337 elsif($featRef->{exclude} == 1) |
350 { |
350 { |
351 $uid = $feat->{uid}; |
351 $uid = $feat->{uid}; |
352 |
352 |
353 $featRef = $FeatureMap{$uid}; |
353 $featRef = $FeatureMap{$uid}; |
354 |
354 |
355 if( $featRef->{exclude} == 1 ) |
355 if( defined ($featRef) && defined ($featRef->{exclude}) && $featRef->{exclude} == 1 ) |
356 { |
356 { |
357 &ERROR("The feature $feat->{name} was added into the exclude as well as include list"); |
357 &ERROR("The feature $feat->{name} was added into the exclude as well as include list"); |
358 return 0; |
358 return 0; |
359 } |
359 } |
360 elsif($featRef->{include} == 1) |
360 elsif($featRef->{include} == 1) |
422 # @param : HexaDecimal Value |
422 # @param : HexaDecimal Value |
423 # |
423 # |
424 sub ConvertHexToDecimal |
424 sub ConvertHexToDecimal |
425 { |
425 { |
426 my $val = shift; |
426 my $val = shift; |
427 if(grep /^0x/i, $val) |
427 if(defined ($val) && grep /^0x/i, $val) |
428 { |
428 { |
429 # Input is Hexadecimal value, convert to Decimal |
429 # Input is Hexadecimal value, convert to Decimal |
430 return hex($val); |
430 return hex($val); |
431 } |
431 } |
432 else |
432 else |