From: Toshi MARUYAMA Date: Wed, 25 May 2011 08:51:38 +0000 (+0000) Subject: scm: bazaar: check not nil in adapter append_revisions_only() (#2799, #4741, #8030). X-Git-Tag: 1.3.0~1954 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d519e37ee38637677810fde9e3b3bb17c7a315c;p=redmine.git scm: bazaar: check not nil in adapter append_revisions_only() (#2799, #4741, #8030). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5895 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index 5f5d89792..ca980052c 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -240,7 +240,7 @@ module Redmine return @aro if ! @aro.nil? @aro = false bcp = self.class.branch_conf_path(url) - if File.exist?(bcp) + if bcp && File.exist?(bcp) begin f = File::open(bcp, "r") cnt = 0