Permalink
Browse files

Don't try to process an object we don't have

The most likely reason is that we already did it.

We could store the $obj in the cache instead of just the $new_id
but that would use a LOT more memory for little gain.
  • Loading branch information...
1 parent 828dca5 commit fcc9f5ab36ac2a6590fb24309e92e1c6665eda9d @afresh1 committed Aug 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 rt-ticket-importer
View
2 rt-ticket-importer
@@ -153,6 +153,8 @@ sub _ConvertItem {
}
}
+ return $new_id unless $obj;
+
foreach my $key (qw( LastUpdatedBy LastUpdated )) {
my $value = $item->{$key} or next;
$value = ConvertUser($value) if $key eq 'LastUpdatedBy';

0 comments on commit fcc9f5a

Please sign in to comment.