Commit 16ba2784 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Fixed NPE due to new 5G-Entry API

parent 65b8e133
......@@ -443,6 +443,20 @@ public class FiveGTopologyView extends AbstractTopologyView<CellLink> {
public void setLinkData(FiveGTopologyDatabase.Entry linkData,
FiveGTopologyDatabase.Entry apLinkData) {
// Initialization
if (this.linkData == null && this.apLinkData == null) {
this.linkData = linkData;
this.apLinkData = apLinkData;
if (apLinkData != null) {
apLinkData.onHostEntersSegment(mobileClient);
} else {
linkData.onHostEntersSegment(mobileClient);
}
// For the first update on link creation.
return;
}
// Update
if (apLinkData != null) {
assert supportsAccessPoints;
if (this.apLinkData != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment