Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Pakuła2019-07-12 11:22:15 -0400
committerDawid Pakuła2019-07-12 11:22:15 -0400
commitc34ce9b8483ba4deff2520cdf3c56f74461818d1 (patch)
tree345e95bc3173fb1c80d8a60fb733c1f50eb969a8
parent025f6d229a8997531a1da58ac6e2c9ed3282b255 (diff)
downloadorg.eclipse.pdt-c34ce9b8483ba4deff2520cdf3c56f74461818d1.tar.gz
org.eclipse.pdt-c34ce9b8483ba4deff2520cdf3c56f74461818d1.tar.xz
org.eclipse.pdt-c34ce9b8483ba4deff2520cdf3c56f74461818d1.zip
Bug 549133 - Unable run phpunit tests
Change-Id: I6dd8b825a82544f76f989204b193aa26e5c5792b Signed-off-by: Dawid Pakuła <zulus@w3des.net>
-rw-r--r--plugins/org.eclipse.php.phpunit/src/org/eclipse/php/phpunit/ui/launch/PHPUnitLaunchConfigurationDelegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.phpunit/src/org/eclipse/php/phpunit/ui/launch/PHPUnitLaunchConfigurationDelegate.java b/plugins/org.eclipse.php.phpunit/src/org/eclipse/php/phpunit/ui/launch/PHPUnitLaunchConfigurationDelegate.java
index 3625ffafb..870e94051 100644
--- a/plugins/org.eclipse.php.phpunit/src/org/eclipse/php/phpunit/ui/launch/PHPUnitLaunchConfigurationDelegate.java
+++ b/plugins/org.eclipse.php.phpunit/src/org/eclipse/php/phpunit/ui/launch/PHPUnitLaunchConfigurationDelegate.java
@@ -341,7 +341,7 @@ public class PHPUnitLaunchConfigurationDelegate extends PHPExecutableLaunchDeleg
synchronized (wconfig) {
envVariables = wconfig.getAttribute(ILaunchManager.ATTR_ENVIRONMENT_VARIABLES,
new HashMap<String, String>());
- envVariables = ObjectUtils.defaultIfNull(envVariables, new HashMap<>());
+ envVariables = Collections.synchronizedMap(ObjectUtils.defaultIfNull(envVariables, new HashMap<>()));
envVariables.computeIfAbsent(ENV_PORT, key -> {
final String port = String.valueOf(PHPUnitPreferenceKeys.getPort());
envVariables.put(key, port);

Back to the top