We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743a127 commit 29370bdCopy full SHA for 29370bd
RawFileParser.cs
@@ -118,6 +118,12 @@ private static void ProcessFile(ParseInput parseInput)
118
var firstScanNumber = rawFile.RunHeaderEx.FirstSpectrum;
119
var lastScanNumber = rawFile.RunHeaderEx.LastSpectrum;
120
121
+ // Check for empty file
122
+ if (lastScanNumber == 0)
123
+ {
124
+ throw new RawFileParserException("Empty RAW file, no output is produced");
125
+ }
126
+
127
if (parseInput.MetadataFormat != MetadataFormat.NONE)
128
{
129
MetadataWriter metadataWriter = new MetadataWriter(parseInput);
0 commit comments