IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 16, 2010, 1:06:08 PM (15 years ago)
Author:
bills
Message:

Need to check that scheme is defined before dereferencing it

File:
1 edited

Legend:

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

    r29891 r30071  
    11071107    }
    11081108
    1109     if (file_scheme($output) ne 'neb') {
     1109    my $scheme = file_scheme($output);
     1110    if (!$scheme or ($scheme ne 'neb')) {
    11101111        # non-nebulous file we're done
    1111         if ($delete_existing) {
     1112        if ($delete_existing and $self->file_exists($output)) {
    11121113            if (!$self->file_delete($output)) {
    11131114                carp "failed to delete $output";
     
    11811182    my $copies = shift;
    11821183
    1183     if (file_scheme($file) ne 'neb') {
     1184    my $scheme = file_scheme($file);
     1185    if (!$scheme or ($scheme ne 'neb')) {
    11841186        carp "cannot replicate non-neulous file: $file";
    11851187        return 0;
Note: See TracChangeset for help on using the changeset viewer.