diff options
author | Vít Ondruch <vondruch@redhat.com> | 2018-09-06 12:28:05 +0200 |
---|---|---|
committer | Vít Ondruch <vondruch@redhat.com> | 2018-09-06 12:28:19 +0200 |
commit | ed46f2450050a9c7e2de708ae051b9e25e2cbc6c (patch) | |
tree | 5d0edcdd93d8db2ac7c49238cf32749ce2be52d6 | |
parent | c4892480aba36d31a3b6e232f17a705aaad1b730 (diff) | |
download | bundler-ed46f2450050a9c7e2de708ae051b9e25e2cbc6c.tar.gz |
Check if 'search' is initialized.
-rw-r--r-- | lib/bundler/lazy_specification.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb index 993952c23b..d9cb01f810 100644 --- a/lib/bundler/lazy_specification.rb +++ b/lib/bundler/lazy_specification.rb @@ -80,7 +80,7 @@ module Bundler "To use the platform-specific version of the gem, run `bundle config specific_platform true` and install again." search = source.specs.search(self).last end - search.dependencies = dependencies if search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification) + search.dependencies = dependencies if search && (search.is_a?(RemoteSpecification) || search.is_a?(EndpointSpecification)) search end end |