diff --git a/plugins/ru.runa.gpd.office/src/ru/runa/gpd/office/store/BaseCommonStorageHandlerCellEditorProvider.java b/plugins/ru.runa.gpd.office/src/ru/runa/gpd/office/store/BaseCommonStorageHandlerCellEditorProvider.java index c07e2a634..67fd2beb4 100644 --- a/plugins/ru.runa.gpd.office/src/ru/runa/gpd/office/store/BaseCommonStorageHandlerCellEditorProvider.java +++ b/plugins/ru.runa.gpd.office/src/ru/runa/gpd/office/store/BaseCommonStorageHandlerCellEditorProvider.java @@ -147,14 +147,16 @@ public void modifyText(ModifyEvent e) { new Label(this, SWT.NONE); } - SwtUtils.createLink(this, Messages.getString("label.AddVar"), new LoggingHyperlinkAdapter() { - - @Override - protected void onLinkActivated(HyperlinkEvent e) throws Exception { - model.constraints.add(new StorageConstraintsModel(StorageConstraintsModel.ATTR, queryType)); - buildFromModel(); - } - }).setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END)); + if (queryType != null) { + SwtUtils.createLink(this, Messages.getString("label.AddVar"), new LoggingHyperlinkAdapter() { + + @Override + protected void onLinkActivated(HyperlinkEvent e) throws Exception { + model.constraints.add(new StorageConstraintsModel(StorageConstraintsModel.ATTR, queryType)); + buildFromModel(); + } + }).setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END)); + } new Label(this, SWT.NONE); warning = new Label(this, SWT.NONE); warning.setForeground(darkRed);