Skip to content

Commit

Permalink
YARN-11597. Fix NPE when loading static files in SLSWebApp (#6216) Co…
Browse files Browse the repository at this point in the history
…ntributed by Junfan Zhang.

Reviewed-by: Shilun Fan <[email protected]>
Signed-off-by: Shilun Fan <[email protected]>
  • Loading branch information
zuston authored Oct 27, 2023
1 parent 7ec636d commit e4eda40
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public void start() throws Exception {
String webRootDir = getClass().getClassLoader().getResource("html").
toExternalForm();
staticHandler.setResourceBase(webRootDir);
staticHandler.start();

Handler handler = new AbstractHandler() {
@Override
Expand Down

0 comments on commit e4eda40

Please sign in to comment.