diff options
author | Eugene Tarassov | 2017-01-17 01:21:11 +0000 |
---|---|---|
committer | Eugene Tarassov | 2017-01-17 01:21:11 +0000 |
commit | edbcb3b55a62cf4df0e2e5a0e659ba7421a036d5 (patch) | |
tree | af15505298e18794dfa088be33aee5b93bc0cdea /plugins | |
parent | 8819c30479cec273ce3f9a8647ba986776eaff60 (diff) | |
download | org.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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/ChannelTCP.java | 4 |
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; |