Commit ead4e8d4 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

BS-14751 Fix npe when deleting a manager in organization

parent 96a87ddd
......@@ -14,6 +14,7 @@
*/
package org.bonitasoft.studio.actors.ui.wizard.page;
import static com.google.common.base.Strings.isNullOrEmpty;
import static org.bonitasoft.studio.common.jface.databinding.UpdateStrategyFactory.updateValueStrategy;
import static org.bonitasoft.studio.common.jface.databinding.validator.ValidatorFactory.maxLengthValidator;
......@@ -426,7 +427,7 @@ public class UsersWizardPage extends AbstractOrganizationWizardPage {
public void selectionChanged(final SelectionChangedEvent event) {
final String eventObject = (String) ((StructuredSelection) event.getSelection()).getFirstElement();
String selectedManager = "";
if (!eventObject.isEmpty()) {
if (!isNullOrEmpty(eventObject)) {
selectedManager = eventObject;
}
final User selectedUser = (User) userSingleSelectionObservable.getValue();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment