Didn't quite grasp why this was happening, hope you can help.
I was getting a NPE in the DecorateWidget:
// get the extension page by name
PageBook.Page page =
book.forName(DecorateWidget.embedNameFor(templateClass));
// create a dummy respond to collect the output of the embedded
page
StringBuilderRespond sbrespond = new StringBuilderRespond(new
Object());
EmbeddedRespond embedded = new EmbeddedRespond(null, sbrespond);
page.widget().render(bound, embedded);
as page.widget() was returning null.
This does not happen in Stage.DEVELOPMENT as DebugModePageBook reloads
the template during runtime.
Anyways I hacked a quick solution by changing the
ScanAndCompilerBootstrapper. I've made a pull request in Github.
The problem is I couldn't reproduce the issue in the acceptance-tests;
I've ran the tests (or the DecoratorAcceptanceTest) with
Stage.PRODUCTION and it passes.
So basically I'm lost here, can anyone help me figure out what is
happening?
Thanks.
I have to fix the branch first . But I sure will.