When dialers are not initialized, the template loader now returns nil and logs an error instead of panicking. This allows callers to handle the situation gracefully.
panic(...) with store.logger.Error().Msgf(...) and return nildialers := protocolstate.GetDialersWithId(typesOpts.ExecutionId)
if dialers == nil {
panic("dialers with executionId " + typesOpts.ExecutionId + " not found")
}
dialers := protocolstate.GetDialersWithId(typesOpts.ExecutionId)
if dialers == nil {
store.logger.Error().Msgf("dialers with executionId %s not found, skipping template loading", typesOpts.ExecutionId)
return nil
}
Fixes #6674
/claim #6674
Bug Fixes
Tests
Erdogan Kervanli
@erdogan98
ProjectDiscovery
@projectdiscovery
Madhavan Deepak
@Madhavan-Deepak