mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[ArchiveTools] Add more null checks
This commit is contained in:
@@ -399,7 +399,13 @@ namespace SabreTools.Helper.Tools
|
||||
List<Rom> roms = new List<Rom>();
|
||||
string gamename = Path.GetFileNameWithoutExtension(input);
|
||||
|
||||
// First get the archive type
|
||||
// First, we check that there is anything being passed as the input
|
||||
if (String.IsNullOrEmpty(input))
|
||||
{
|
||||
return roms;
|
||||
}
|
||||
|
||||
// Next, get the archive type
|
||||
ArchiveType? at = GetCurrentArchiveType(input, logger);
|
||||
|
||||
// If we got back null, then it's not an archive, so we we return
|
||||
|
||||
Reference in New Issue
Block a user