[
https://issues.apache.org/jira/browse/DIRSTUDIO-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904488#comment-15904488
]
Emmanuel Lecharny commented on DIRSTUDIO-1134:
----------------------------------------------
Side note : there is another problem (and I will open a new ticket for that).
If you want to create an attribute with a null value, and this is legit, for
instance for any attribute which syntax is {{IA5String}} for instance, you get
a {{NPE}} :
{noformat}
Caused by: java.lang.RuntimeException: Empty value in attribute mail
at
org.apache.directory.studio.entryeditors.EntryEditorManager.saveSharedWorkingCopy(EntryEditorManager.java:991)
at
org.apache.directory.studio.entryeditors.EntryEditorInput.saveSharedWorkingCopy(EntryEditorInput.java:283)
...
{noformat}
The two issues are related, as we always set a null value in any added
attribute, and we always expect the user to feed the value later on, marking it
using the red color.
At this point, I'm wondering if adding a value editor call at the end of the
attribute addition widget wouldn't be a better idea...
> Boolean Attribute Addition with no value causes Directory Studio crash on Mac
> -----------------------------------------------------------------------------
>
> Key: DIRSTUDIO-1134
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1134
> Project: Directory Studio
> Issue Type: Bug
> Components: studio-apacheds
> Affects Versions: 2.0.0-M12
> Environment: MacOS Sierra 10.12.2
> Reporter: Eric Lawson
> Priority: Minor
> Attachments: hr_err.log
>
>
> When adding a boolean attribute to an object with no attribute value
> Directory Studio crashes. I can't reproduce this issue on Windows only on
> the Mac version 2.0.0-M12
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)