[CONTROLLER-1472] NullPointerException in Devices.java Created: 16/Jan/16  Updated: 25/Jul/23  Resolved: 19/May/16

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: lei xu Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 4984

 Description   

I located one concurrency bug will raise NullpointerException inside Devices.java.

The snippet for the bug:

String nodeConnectorName = ((Name)switchManager.getNodeConnectorProp(nodeConnector,
Name.NamePropName)).getValue();

the switchManager.getNodeConnectorProp() function potentially returns a Null if a concurrent removal upon the property variable.
A null checker can fix this bug.



 Comments   
Comment by Robert Varga [ 19/May/16 ]

AD-SAL has been removed, this issue will not be fixed.

Generated at Wed Feb 07 19:55:38 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.