Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 743ba1d5 authored by Harald Martini's avatar Harald Martini
Browse files

fixed null reference error in FileHelper

parent aabe6df9
No related branches found
No related tags found
No related merge requests found
using System.IO;
using Castle.Core.Internal;
namespace VECTO3GUI2020.Helper
{
......@@ -7,7 +8,9 @@ namespace VECTO3GUI2020.Helper
public static void CreateDirectory(string fileName)
{
var dirName = Path.GetDirectoryName(fileName);
Directory.CreateDirectory(dirName);
if (!dirName.IsNullOrEmpty()) {
Directory.CreateDirectory(dirName);
}
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment