diff --git a/src/PluginWrapper.php b/src/PluginWrapper.php index c2a2cbc..1f7161d 100644 --- a/src/PluginWrapper.php +++ b/src/PluginWrapper.php @@ -187,10 +187,12 @@ protected function absolutePaths($paths) { $return = array(); foreach ($paths as $path) { - if (!$this->filesystem->isAbsolutePath($path)) { - $path = getcwd().'/'.$path; + if (!is_null($path)) { + if (!$this->filesystem->isAbsolutePath($path)) { + $path = getcwd().'/'.$path; + } + $return[] = $path; } - $return[] = $path; } return $return;