commit | 82dcd98f4b063de3767632d9017cc72edfea3b42 | [log] [tgz] |
---|---|---|
author | Umesh Krishnaswamy <krishji@gmail.com> | Fri Feb 01 15:36:15 2013 -0800 |
committer | Umesh Krishnaswamy <krishji@gmail.com> | Fri Feb 01 15:36:15 2013 -0800 |
tree | f9bea10129f0a4cb7ad11455074f39cb64a46ace | |
parent | d956f6fbaf4d020d8fccf0ddbb902d6b61eb0985 [diff] |
Fix NPE when logging remotesw in addRemoteSwitch().
diff --git a/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkDiscoveryManager.java b/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkDiscoveryManager.java index c432987..f5ad9ac 100644 --- a/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkDiscoveryManager.java +++ b/src/main/java/net/floodlightcontroller/linkdiscovery/internal/LinkDiscoveryManager.java
@@ -551,7 +551,7 @@ remoteport.setConfig(0); remoteport.setState(0); remotesw.setPort(remoteport); - log.debug("addRemoteSwitch(): added fake remote port {} to sw {}", remoteport, remotesw); + log.debug("addRemoteSwitch(): added fake remote port {} to sw {}", remoteport, remotesw.getId()); } return remotesw;