summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-12-13 21:01:55 +0800
committerAndre Arko <andre@arko.net>2015-12-14 16:23:29 -0800
commitd62cd93131b2dda47e498f3c6b7d4edc25ff1840 (patch)
tree48a6c9bac4b4a0b543049aae3c9c77a35c24d3b8
parent6c18c55406e386c6b9d591b589360face9211096 (diff)
downloadbundler-fix-4147.tar.gz
refrain from calling methods on nilfix-4147
fixes #4147
-rw-r--r--lib/bundler/lazy_specification.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/lazy_specification.rb b/lib/bundler/lazy_specification.rb
index 8d4a114ede..38ab0a16c6 100644
--- a/lib/bundler/lazy_specification.rb
+++ b/lib/bundler/lazy_specification.rb
@@ -54,7 +54,7 @@ module Bundler
end
def respond_to?(*args)
- super || @specification.respond_to?(*args)
+ super || @specification ? @specification.respond_to?(*args) : nil
end
def to_s