Skip to content

Commit

Permalink
fix accessing the with this causes NPE use UI.getCurrent
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Hirsch <[email protected]>
  • Loading branch information
michahirsch committed Feb 11, 2016
1 parent 145ae2e commit d8a0a7f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.vaadin.spring.annotation.SpringComponent;
import com.vaadin.spring.annotation.ViewScope;
import com.vaadin.ui.Label;
import com.vaadin.ui.UI;

/**
* @author Venugopal Boodidadinne(RBEI/BSJ)
Expand Down Expand Up @@ -75,7 +76,7 @@ void onEvent(final CustomFilterUIEvent custFUIEvent) {
|| custFUIEvent == CustomFilterUIEvent.CREATE_NEW_FILTER_CLICK
|| custFUIEvent == CustomFilterUIEvent.EXIT_CREATE_OR_UPDATE_FILTRER_VIEW
|| custFUIEvent == CustomFilterUIEvent.FILTER_TARGET_BY_QUERY) {
this.getUI().access(() -> displayTargetFilterMessage());
UI.getCurrent().access(() -> displayTargetFilterMessage());
}
}

Expand Down

0 comments on commit d8a0a7f

Please sign in to comment.