Set face name for 'Refresh Contribution Branch Name' button to avoid NPE

Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
6.19.x
Roman Nikitenko 2018-06-11 16:40:23 +03:00 committed by RomanNikitenko
parent ca745567e1
commit 4d76916632
1 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ package org.eclipse.che.plugin.pullrequest.client.parts.contribute;
import static com.google.gwt.dom.client.Style.Cursor.POINTER;
import static com.google.gwt.dom.client.Style.Unit.PX;
import static org.vectomatic.dom.svg.ui.SVGButtonBase.SVGFaceName.UP;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
@ -134,6 +135,7 @@ public class ContributePartViewImpl extends BaseView<ContributePartView.ActionDe
this.refreshContributionBranchNameListButton.getElement().getStyle().setWidth(23, PX);
this.refreshContributionBranchNameListButton.getElement().getStyle().setHeight(20, PX);
this.refreshContributionBranchNameListButton.getElement().getStyle().setCursor(POINTER);
this.refreshContributionBranchNameListButton.showFace(UP);
this.refreshContributionBranchNameListButton
.getElement()
.getStyle()