IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 12, 2010, 8:54:56 AM (16 years ago)
Author:
bills
Message:

handle case where request file has no rows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm

    r27211 r27260  
    141141            print STDERR @$stderr_buf;
    142142        }
    143         my $table =  $mdcParser->parse(join "", @$stdout_buf) or
    144             die("Unable to parse metdata config doc");
     143        if (@$stdout_buf) {
     144            my $table =  $mdcParser->parse(join "", @$stdout_buf) or
     145                die("Unable to parse metdata config doc");
    145146
    146         $rows = parse_md_list($table);
     147            $rows = parse_md_list($table);
     148        } else {
     149            print STDERR "$request_file_name contains empty request table\n";
     150        }
    147151    }
    148152
Note: See TracChangeset for help on using the changeset viewer.