package com.composum.sling.nodes.console;

import com.composum.sling.core.AbstractSlingBean;
import com.composum.sling.core.BeanContext;
import com.composum.sling.core.util.LinkMapper;
import org.apache.sling.api.resource.Resource;

public class ConsoleSlingBean extends AbstractSlingBean {

    public ConsoleSlingBean(BeanContext context, Resource resource) {
        super(context, resource);
    }

    public ConsoleSlingBean(BeanContext context) {
        super(context);
    }

    public ConsoleSlingBean() {
        super();
    }

    @Override
    public void initialize(BeanContext context, Resource resource) {
        super.initialize(context, resource);
        context.getRequest().setAttribute(LinkMapper.LINK_MAPPER_REQUEST_ATTRIBUTE, LinkMapper.CONTEXT);
    }
}

@@ -670,16 +670,20 @@
         
+if (
 context.
@@ -694,16 +694,81 @@
 equest()
+ != null) %7B%0A            context.getRequest()%0A                    
 .setAttr
@@ -836,16 +836,26 @@
 NTEXT);%0A
+        %7D%0A
     %7D%0A%7D%0A

fix NPE