Skip to content

Commit 26994a6

Browse files
committed
do not fail in case app_path returns nil
1 parent 3fd075b commit 26994a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/ruby/jruby/rack/app_layout.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class WebInfLayout < AppLayout
5656

5757
def initialize(context)
5858
super
59-
$0 = File.join(app_path, 'web.xml')
59+
path = app_path
60+
$0 = path ? File.join(path, 'web.xml') : 'web.xml'
6061
end
6162

6263
# Checks the **app.root** (and **rails.root**) init parameter.

0 commit comments

Comments
 (0)