From d62cd93131b2dda47e498f3c6b7d4edc25ff1840 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Sun, 13 Dec 2015 21:01:55 +0800 Subject: refrain from calling methods on nil fixes #4147 --- lib/bundler/lazy_specification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1