IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19272


Ignore:
Timestamp:
Aug 28, 2008, 3:37:10 PM (18 years ago)
Author:
bills
Message:

check for output from the ipp tool before trying to parse it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PStamp/lib/PStamp/Job.pm

    r19216 r19272  
    146146        return undef;
    147147    }
    148     my $mdcParser = PS::IPP::Metadata::Config->new; # Parser for metadata config files
    149 
    150     my $images = parse_md_fast($mdcParser, join "", @$stdout_buf)
     148
     149    my $buf = join "", @$stdout_buf;
     150    if (!$buf) {
     151        return;
     152    }
     153
     154    my $mdcParser = PS::IPP::Metadata::Config->new;
     155    my $images = parse_md_fast($mdcParser, $buf)
    151156        or die ("Unable to parse metadata config doc");
    152157
     
    172177        $out->{state}  = $image->{state}; # state is undef for rawExp, but that's ok
    173178        $class_id = $image->{class_id} if $use_class_id;
     179
    174180
    175181        # find the mask and weight images
Note: See TracChangeset for help on using the changeset viewer.