Skip to content
Snippets Groups Projects
Commit 3206efd6 authored by Shudong Zhou's avatar Shudong Zhou
Browse files

Fix error handling during switch handshake

parent 90642dfb
No related branches found
No related tags found
No related merge requests found
......@@ -425,8 +425,11 @@ public class RoleChanger {
* @return
*/
public boolean checkFirstPendingRoleRequestXid (IOFSwitch sw, int xid) {
LinkedList<PendingRoleRequestEntry> pendingRoleRequests =
pendingRequestMap.get(sw);
LinkedList<PendingRoleRequestEntry> pendingRoleRequests;
if (sw == null) {
return false;
}
pendingRoleRequests = pendingRequestMap.get(sw);
if (pendingRoleRequests == null) {
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment