[ 
https://issues.apache.org/jira/browse/DIRSTUDIO-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901373#comment-15901373
 ] 

Emmanuel Lecharny commented on DIRSTUDIO-1138:
----------------------------------------------

In the {{AbstractInPlaceStringValueEditor.doSetValue( Object value )}} method, 
adding a checking on the value fix the issue :

{noformat}
    protected void doSetValue( Object value )
    {
        if ( value instanceof IValue.EmptyValue )
        {
            value = ( ( IValue.EmptyValue ) value ).getStringValue();
        }
        
        if ( value == null )
        {
            value = "";
        }
        
        super.doSetValue( value );
    }
{noformat}

instead of 

{noformat}
    protected void doSetValue( Object value )
    {
        if ( value instanceof IValue.EmptyValue )
        {
            value = ( ( IValue.EmptyValue ) value ).getStringValue();
        }
        
        super.doSetValue( value );
    }
{noformat}

> Studio freezes after the addition of a Boolean attribute with no editor
> -----------------------------------------------------------------------
>
>                 Key: DIRSTUDIO-1138
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1138
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-ldapbrowser
>    Affects Versions: 2.0.0-M12
>            Reporter: Emmanuel Lecharny
>
> While trying to add an attribute into an existing entry, Studio freezes after 
> having shown an error.
> Here is the Attribute description :
> {noformat}
> attributetype ( 1.3.6.1.4.1.4203.1.12.2.3.3.1.3 NAME 'olcSpNoPresent'
>       DESC 'Omit Present phase processing'
>       SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
>       SINGLE-VALUE
>       USAGE userApplications )
> {noformat}
> Here is the message I get :
> {noformat}
> >>>Error, the configured value editor can not handle this value! <<<
> {noformat}
> At this point, I can open the preference menu, or check the schema using the 
> Ldap Schema tab, as soon as I don't double-click on the error message. But if 
> I do, I get a spinning ball for ever.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to