Hi All,
I have created a class which extends WCMUsePojo. But it's not working, it is giving following error.
com.adobe.cq.sightly.WCMUsePojo Failed to activate Use class
java.lang.NullPointerException: null
This is the code:
import com.adobe.cq.sightly.WCMUsePojo;
public class TestUse extends WCMUsePojo {
String text;
@Override
public void activate() throws Exception {
text = get("text", String.class);
log.debug("Text: {}", text);
log.info("--- Started : : Activate");
}
public String getText (){
return this.text;
}
}
I have also included uber.jar in the pom.and the bundle is in the active state.
Please help me to resolve this issue.