aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2017-01-16 20:21:11 -0500
committerEugene Tarassov2017-01-16 20:21:11 -0500
commitedbcb3b55a62cf4df0e2e5a0e659ba7421a036d5 (patch)
treeaf15505298e18794dfa088be33aee5b93bc0cdea
parent8819c30479cec273ce3f9a8647ba986776eaff60 (diff)
downloadorg.eclipse.tcf-edbcb3b55a62cf4df0e2e5a0e659ba7421a036d5.tar.gz
org.eclipse.tcf-edbcb3b55a62cf4df0e2e5a0e659ba7421a036d5.tar.xz
org.eclipse.tcf-edbcb3b55a62cf4df0e2e5a0e659ba7421a036d5.zip
TCF Core: fixed: missing 'volatile' keyword can cause NPE
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ChannelTCP.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ChannelTCP.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ChannelTCP.java
index 0439f4d65..75e38a355 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ChannelTCP.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ChannelTCP.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2016 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007, 2017 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -30,7 +30,7 @@ import org.eclipse.tcf.protocol.Protocol;
*/
public class ChannelTCP extends StreamChannel {
- private Socket socket;
+ private volatile Socket socket;
private int timeout;
private InputStream inp;
private OutputStream out;