Setting.plugin_redmine_dmsf['dmsf_index_database']: undefined method 'strip' for nil:NilClass #1483
This commit is contained in:
parent
8b7f158951
commit
d2f66a8380
@ -370,7 +370,15 @@ class DmsfFile < ApplicationRecord
|
|||||||
if !options[:titles_only] && RedmineDmsf::Plugin.xapian_available?
|
if !options[:titles_only] && RedmineDmsf::Plugin.xapian_available?
|
||||||
database = nil
|
database = nil
|
||||||
begin
|
begin
|
||||||
|
unless Setting.plugin_redmine_dmsf['dmsf_stemming_lang']
|
||||||
|
raise StandardError, "'dmsf_stemming_lang' option is not set"
|
||||||
|
end
|
||||||
|
|
||||||
lang = Setting.plugin_redmine_dmsf['dmsf_stemming_lang'].strip
|
lang = Setting.plugin_redmine_dmsf['dmsf_stemming_lang'].strip
|
||||||
|
unless Setting.plugin_redmine_dmsf['dmsf_index_database']
|
||||||
|
raise StandardError, "'dmsf_index_database' option is not set"
|
||||||
|
end
|
||||||
|
|
||||||
databasepath = File.join(Setting.plugin_redmine_dmsf['dmsf_index_database'].strip, lang)
|
databasepath = File.join(Setting.plugin_redmine_dmsf['dmsf_index_database'].strip, lang)
|
||||||
database = Xapian::Database.new(databasepath)
|
database = Xapian::Database.new(databasepath)
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user