TheCoder4eu / BootsFacesWeb

BootsFaces : the next gen JSF Framework Web Docs
Apache License 2.0
36 stars 32 forks source link

NPE in DateTimeBean #60

Closed jepsar closed 5 years ago

jepsar commented 5 years ago

https://github.com/TheCoder4eu/BootsFacesWeb/blob/6908ecf8ab8c9a8594d33ada438f75d08065cd41/src/main/java/net/bootsfaces/demo/DateTimeBean.java#L225

Should be .getResourceAsStream("META-INF/resources/bsf/js/moment.min.js"); (without leading slash).

stephanrauh commented 5 years ago

Which application server do you use?

On my machine, there's no NPE. But there's also no NPE after applying your suggestion, so I've committed the change.

stephanrauh commented 5 years ago

Please close the ticket if the bugfix, well, fixed the bug.

jepsar commented 5 years ago

Tested it with Payara Server 4.1.2.174 (build 192). I tested the change before I reported it :-)