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

Not setting page.st or a theme results to NPE #19

Closed
eed3si9n opened this issue Sep 1, 2016 · 1 comment
Closed

Not setting page.st or a theme results to NPE #19

eed3si9n opened this issue Sep 1, 2016 · 1 comment

Comments

@eed3si9n
Copy link
Contributor

eed3si9n commented Sep 1, 2016

steps

Try using without themes

problem

java.lang.NullPointerException
           at com.lightbend.paradox.template.PageTemplate.write(PageTemplate.scala:35)
           at com.lightbend.paradox.ParadoxProcessor.com$lightbend$paradox$ParadoxProcessor$$render$1(ParadoxProcessor.scala:56)
           at com.lightbend.paradox.ParadoxProcessor$$anonfun$process$1.apply(ParadoxProcessor.scala:60)
           at com.lightbend.paradox.ParadoxProcessor$$anonfun$process$1.apply(ParadoxProcessor.scala:60)
           at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
           at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
           at scala.collection.immutable.List.foreach(List.scala:318)

https://github.com/lightbend/paradox/blob/master/core/src/main/scala/com/lightbend/paradox/template/PageTemplate.scala#L35

templates.getInstanceOf(name) is null

expectation

Display an error message.

@dwijnand
Copy link
Member

dwijnand commented Sep 1, 2016

What about if we defaulted the theme? I think that's a better out-the-box experience.

eed3si9n added a commit that referenced this issue Sep 6, 2016
eed3si9n added a commit that referenced this issue Sep 6, 2016
@ennru ennru added this to the invalid/not release-bound milestone Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants