fixed invalid thread access (issue #1209)
authorVictor Kirhenshtein <victor@netxms.org>
Sun, 29 May 2016 08:25:24 +0000 (11:25 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Sun, 29 May 2016 08:25:24 +0000 (11:25 +0300)
ChangeLog
src/java/netxms-eclipse/ServerConfig/src/org/netxms/ui/eclipse/serverconfig/views/ServerConfigurationEditor.java
webui/webapp/ServerConfig/src/org/netxms/ui/eclipse/serverconfig/views/ServerConfigurationEditor.java

index 2befdba..822f28e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -27,7 +27,7 @@
        - Object tooltips in rack view
 - Android console
        - Reorganized alarm notification section (issue #1194)
-- Fixed issues: #859, #984, #1086, #1194, #1195, #1196, #1197, #1200, #1210, #1214, #1223, #1227, #1231
+- Fixed issues: #859, #984, #1086, #1194, #1195, #1196, #1197, #1200, #1209, #1210, #1214, #1223, #1227, #1231
 
 
 *
index 492b4b9..193ea57 100644 (file)
@@ -417,7 +417,13 @@ public class ServerConfigurationEditor extends ViewPart
                                protected void runInternal(IProgressMonitor monitor) throws Exception
                                {
                                        session.setServerVariable(dlg.getVarName(), dlg.getVarValue());
-                                       refresh();
+                                       runInUIThread(new Runnable() {
+                  @Override
+                  public void run()
+                  {
+                     refresh();
+                  }
+               });
                                }
                        }.start();
                }
@@ -448,7 +454,13 @@ public class ServerConfigurationEditor extends ViewPart
                                protected void runInternal(IProgressMonitor monitor) throws Exception
                                {
                                        session.setServerVariable(dlg.getVarName(), dlg.getVarValue());
-                                       refresh();
+                                       runInUIThread(new Runnable() {
+                                               @Override
+                                               public void run()
+                                               {
+                                                       refresh();
+                                               }
+                                       });
                                }
                        }.start();
                }
index 0d1aae3..193ea57 100644 (file)
@@ -417,7 +417,13 @@ public class ServerConfigurationEditor extends ViewPart
                                protected void runInternal(IProgressMonitor monitor) throws Exception
                                {
                                        session.setServerVariable(dlg.getVarName(), dlg.getVarValue());
-                                       refresh();
+                                       runInUIThread(new Runnable() {
+                  @Override
+                  public void run()
+                  {
+                     refresh();
+                  }
+               });
                                }
                        }.start();
                }