Re: issue with sling models injection

2016-09-20 Thread Henry Saginor
Hi Santiago, Thank for a reply. To clarify this is not a build issue. Fields were just not injected at runtime. In most cases this resulted in null pointer exception in post constructor method or code calling adaptTo to get the required model. It gets the models class and gets NPE on the

Re: issue with sling models injection

2016-09-20 Thread Santiago Garcia Pimentel
Hi Henry, I’ve seen this behavior when building the model fails (because of a failed injection or an exception in @PostConstruct ) and then sightly falls back to the regular java pojo Use provider, which does not support injection (so all fields are null). Check your logs or debug to see if