File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ func (nodes *Nodes) NodeLinks(node *Node) (result []Link) {
117117	for  sourceMAC , batadv  :=  range  neighbours .Batadv  {
118118		for  neighbourMAC , link  :=  range  batadv .Neighbours  {
119119			if  neighbourID  :=  nodes .ifaceToNodeID [neighbourMAC ]; neighbourID  !=  ""  {
120- 				neighbour  :=  nodes .List [neighbourID ]
120+ 				neighbour ,  neighbourExists  :=  nodes .List [neighbourID ]
121121
122122				link  :=  Link {
123123					SourceID :      neighbours .NodeID ,
@@ -127,7 +127,7 @@ func (nodes *Nodes) NodeLinks(node *Node) (result []Link) {
127127					TQ :            float32 (link .TQ ) /  255.0 ,
128128				}
129129
130- 				if  neighbour .Nodeinfo  !=  nil  {
130+ 				if  neighbourExists   &&   neighbour .Nodeinfo  !=  nil  {
131131					link .TargetHostname  =  neighbour .Nodeinfo .Hostname 
132132				}
133133				if  node .Nodeinfo  !=  nil  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments