Fix crash when drop wav file on waveform - thx Apocalypse612 :)

Fix  #5499
This commit is contained in:
niksedk 2021-11-19 20:09:51 +01:00
parent 97e3749697
commit 87b0f213b2
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@
* Fix error gen waveform when media file delete/renamed - thx Leon * Fix error gen waveform when media file delete/renamed - thx Leon
* Fix textbox width issue in translation mode - thx Leon * Fix textbox width issue in translation mode - thx Leon
* Minor fix for toggle casing for seletion - thx Leon * Minor fix for toggle casing for seletion - thx Leon
* Fix crash when drop wav file on waveform - thx Apocalypse612
3.6.3 (11th November 2021) 3.6.3 (11th November 2021)

View File

@ -346,7 +346,7 @@ namespace Nikse.SubtitleEdit.Forms
_numberOfAudioTracks = 0; _numberOfAudioTracks = 0;
var audioTrackNames = new List<string>(); var audioTrackNames = new List<string>();
var mkvAudioTrackNumbers = new Dictionary<int, int>(); var mkvAudioTrackNumbers = new Dictionary<int, int>();
if (SourceVideoFileName.Length > 1 && File.Exists(SourceVideoFileName)) if (SourceVideoFileName?.Length > 1 && File.Exists(SourceVideoFileName))
{ {
if (SourceVideoFileName.EndsWith(".mkv", StringComparison.OrdinalIgnoreCase)) if (SourceVideoFileName.EndsWith(".mkv", StringComparison.OrdinalIgnoreCase))
{ // Choose for number of audio tracks in matroska files { // Choose for number of audio tracks in matroska files