X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Flib%2FRT.pm;h=e71d6c926fa36ea880cecefb06b8540c5db33b2a;hp=0f0c79a55facc3f5fd5efaa0c8dcbbbdb32b529d;hb=0ea23112cfa0d82738b0f08d60d90579721b7524;hpb=60dd95422a1ad4724e0c5d9dd7f8e8878cd96aa8 diff --git a/rt/lib/RT.pm b/rt/lib/RT.pm index 0f0c79a55..e71d6c926 100644 --- a/rt/lib/RT.pm +++ b/rt/lib/RT.pm @@ -707,7 +707,9 @@ sub InitPluginPaths { my @tmp_inc; my $added; for (@INC) { - if ( Cwd::realpath($_) eq $RT::LocalLibPath) { + my $realpath = Cwd::realpath($_); + next unless defined $realpath; + if ( $realpath eq $RT::LocalLibPath) { push @tmp_inc, $_, @lib_dirs; $added = 1; } else {