Skip to content

Commit 93a5974

Browse files
handle empty channel name
1 parent 1a4c9a1 commit 93a5974

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Writer/MzMlSpectrumWriter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,11 @@ private List<ChromatogramType> ConstructChromatograms()
10651065
{
10661066
var channelName = instData.ChannelLabels[channel];
10671067

1068+
if (channelName.IsNullOrEmpty())
1069+
{
1070+
channelName = "Channel " + channel;
1071+
}
1072+
10681073
var settings = new ChromatogramTraceSettings(TraceType.StartAnalogChromatogramTraces + channel +
10691074
1);
10701075

0 commit comments

Comments
 (0)