From a8a3c93da9702012a3e265e0680cc4663d77ca1e Mon Sep 17 00:00:00 2001 From: Madhu Venugopal Date: Fri, 12 Apr 2013 18:36:35 -0700 Subject: [PATCH] Moving a recently added trim() call in SwitchHandler after Null check. Change-Id: Ib7f5787d612b0cca2b04383e684b6d91401ebb73 Signed-off-by: Madhu Venugopal --- .../protocol_plugin/openflow/core/internal/SwitchHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SwitchHandler.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SwitchHandler.java index 78ab3275a4..cba8b1d4f1 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SwitchHandler.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/SwitchHandler.java @@ -781,8 +781,8 @@ public class SwitchHandler implements ISwitch { } private IMessageReadWrite getMessageReadWriteService() throws Exception { - String str = System.getProperty("secureChannelEnabled").trim(); - return ((str != null) && (str.equalsIgnoreCase("true"))) ? + String str = System.getProperty("secureChannelEnabled"); + return ((str != null) && (str.trim().equalsIgnoreCase("true"))) ? new SecureMessageReadWriteService(socket, selector) : new MessageReadWriteService(socket, selector); } -- 2.36.6