NPE when we press button "Add to current set" #PL-2827

This commit is contained in:
Yuriy Artamonov 2013-10-25 07:41:11 +00:00
parent 1730c4c8c6
commit 108f43d474

View File

@ -2005,7 +2005,13 @@ public class WebFilter extends WebAbstractComponent<VerticalActionsLayout> imple
IFrame frame = WebFilter.this.getFrame(); IFrame frame = WebFilter.this.getFrame();
String[] strings = ValuePathHelper.parse(getComponentPath()); String[] strings = ValuePathHelper.parse(getComponentPath());
String windowAlias = strings[0]; String windowAlias = strings[0];
frame.openLookup(windowAlias, new Window.Lookup.Handler() { StringBuilder lookupAlias = new StringBuilder(windowAlias);
if (windowAlias.endsWith(".browse")) {
int index = lookupAlias.lastIndexOf(".browse");
lookupAlias.delete(index, lookupAlias.length());
lookupAlias.append(".lookup");
}
frame.openLookup(lookupAlias.toString(), new Window.Lookup.Handler() {
@Override @Override
public void handleLookup(Collection items) { public void handleLookup(Collection items) {
String filterXml = filterEntity.getXml(); String filterXml = filterEntity.getXml();