catch extension being nothing

This commit is contained in:
Jonathan Jenne 2023-09-22 14:38:17 +02:00
parent 260b81f0c4
commit 4e7e3ff91f

View File

@ -55,6 +55,11 @@ Namespace slt
Logger.Info("ExtDocId: [{0}]", oDocument.ExtDocId)
Dim oFileName = oDocument.GetUniqueFilename()
If oFileName Is Nothing Then
Throw New ApplicationException("Filename or extension could not be determined!")
End If
Dim oFilePath = GetFinalFilePath(oFileName)
If CopyFileToOutputPath(oDocument.Data, oFilePath) = False Then