Add null check for call span
This commit is contained in:
		
					parent
					
						
							
								277081ee2a
							
						
					
				
			
			
				commit
				
					
						5b70def4d2
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -206,6 +206,10 @@ export class OTelGroupCallMembership {
 | 
				
			||||||
    if (!eventType.startsWith("m.call")) return;
 | 
					    if (!eventType.startsWith("m.call")) return;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const callTrackingInfo = this.callsByCallId.get(call.callId);
 | 
					    const callTrackingInfo = this.callsByCallId.get(call.callId);
 | 
				
			||||||
 | 
					    if (!callTrackingInfo) {
 | 
				
			||||||
 | 
					      logger.error(`Got call send event for unknown call ID ${call.callId}`);
 | 
				
			||||||
 | 
					      return;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (event.type === "toDevice") {
 | 
					    if (event.type === "toDevice") {
 | 
				
			||||||
      callTrackingInfo.span.addEvent(
 | 
					      callTrackingInfo.span.addEvent(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue