Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

directory listing with static server fails with exception #43

Closed
ashertarno opened this issue Feb 5, 2015 · 0 comments
Closed

directory listing with static server fails with exception #43

ashertarno opened this issue Feb 5, 2015 · 0 comments

Comments

@ashertarno
Copy link

an attempt to use directory listing through StaticServer.staticServer().setDirectoryListing( true )
throws

ContextImpl Unhandled exception java.lang.NullPointerException
at java.lang.String.replace(String.java:2227)
at io.vertx.ext.apex.addons.impl.StaticServerImpl.lambda$sendDirectory$20(StaticServerImpl.java:433)...

the reason for such behavior is a lack of "title" value in routing context's data map:

directoryTemplate.replace("{title}", context.get("title")).replace("{directory}", normalizedDir)

it's not clear either how to set the title or why is it mandatory at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants