Thiago H. de Paula Figueiredo wrote: > > Try using lazy loading on getPage(), avoing calling > resources.getPage() in your field initializer. Something like: > > public BasePage getPage() { > if (page == null) { > page = (BasePage) resources.getPage(); > } > return this.page; > } > > Thiago >
Yes, that did the trick. Thanks for the suggestion. Looks like the lifecycle of a component has changed between T5.1 and T5.0. -- View this message in context: http://www.nabble.com/-T5.1--Custom-component-now-causes-NullPointerException-tp23447956p23449036.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org