Commit 8fd5d91a authored by Romain Bioteau's avatar Romain Bioteau
Browse files

fix npe stacks

parent cbdb51dc
......@@ -34,7 +34,6 @@ import org.bonitasoft.studio.actors.operation.CleanPublishOrganizationOperation;
import org.bonitasoft.studio.actors.operation.PublishOrganizationOperation;
import org.bonitasoft.studio.actors.operation.UpdateOrganizationOperation;
import org.bonitasoft.studio.actors.styler.ActiveOrganizationStyler;
import org.bonitasoft.studio.actors.ui.control.DeployOrganizationControlSupplier;
import org.bonitasoft.studio.actors.ui.handler.DeployOrganizationHandler;
import org.bonitasoft.studio.actors.ui.wizard.ManageOrganizationWizard;
import org.bonitasoft.studio.common.jface.FileActionDialog;
......@@ -245,7 +244,8 @@ public class OrganizationFileStore extends EMFFileStore implements IDeployable,
}
public boolean isActiveOrganization() {
return Objects.equals(activeOrganizationProvider.getActiveOrganization(), getContent().getName());
Organization organization = getContent();
return organization != null && Objects.equals(activeOrganizationProvider.getActiveOrganization(), organization.getName());
}
@Override
......
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