[ 
https://issues.apache.org/jira/browse/SLING-15?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529541
 ] 

Edgar Poce commented on SLING-15:
---------------------------------

AFAIK the node sling:scripts is not a script, it's just container of the 
collection of nodes that can be empty, thus the proposed patch shouldn't affect 
the current selection algorithm. I haven't tested yet, but it seems your commit 
also solves the issue. thanks for your help.

> NPE if the scripted component hasn't sling:scripts node created
> ---------------------------------------------------------------
>
>                 Key: SLING-15
>                 URL: https://issues.apache.org/jira/browse/SLING-15
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Edgar Poce
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> if the ScriptedComponent node hasn't the child node "sling:scripts" the 
> request for nodes that refer to that scripted component can't be resolved, it 
> throws NPE at ScriptedComponent: 148 because the variable scripts is not 
> initialized.
> proposed fix: add "mandatory" and "autocreated" to sling:ScriptedComponent 
> Nodetype definition.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to