Skip to content
Snippets Groups Projects
Commit 74f2a551 authored by Srinivasan Ramasubramanian's avatar Srinivasan Ramasubramanian
Browse files

Fix a null pointer exception. Add rest routable in link discovery only if the restApi is not null.

parent 4afee94e
No related branches found
No related tags found
No related merge requests found
......@@ -1875,7 +1875,8 @@ IFloodlightModule, IInfoProvider, IHAListener {
floodlightProvider.addOFSwitchListener(this);
floodlightProvider.addHAListener(this);
floodlightProvider.addInfoProvider("summary", this);
restApi.addRestletRoutable(new LinkDiscoveryWebRoutable());
if (restApi != null)
restApi.addRestletRoutable(new LinkDiscoveryWebRoutable());
setControllerTLV();
}
......
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