[ 
https://issues.apache.org/jira/browse/SLING-1859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931146#action_12931146
 ] 

Clemens Wyss edited comment on SLING-1859 at 11/11/10 3:08 PM:
---------------------------------------------------------------

the mentioned (mis-)behavior arises when a multivalued property is empty. In 
that case (esp code follows):

var properties = 
resource.adaptTo(Packages.org.apache.sling.api.resource.ValueMap);
...
var property = properties.get( id, Packages.javax.jcr.Property );
...

property is null!, i.e. cannot be casted. Is this a bug, or am I doing 
something wrong?

      was (Author: clemensdev):
    the given behavior arises when a multivalued property is empty. In that 
case (esp code follows):

var properties = 
resource.adaptTo(Packages.org.apache.sling.api.resource.ValueMap);
...
var property = properties.get( id, Packages.javax.jcr.Property );
...

property is null!, i.e. cannot be casted. Is this a bug, or am I doing 
something wrong?
  
> Multi-value string properties are not displayed correctly
> ---------------------------------------------------------
>
>                 Key: SLING-1859
>                 URL: https://issues.apache.org/jira/browse/SLING-1859
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Sling Explorer 1.0.0
>            Reporter: Carsten Ziegeler
>            Assignee: Mike Müller
>
> I have a node with a multi value string property, and the explorer displays 
> the value as "[Ljava.lang.Object;@1a6b7e", together with the hint "[not a 
> property!] 

-- 
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