Skip to content

Commit 29dbc01

Browse files
committed
Treat NULL parsed modlist as invalid.
1 parent 1d886be commit 29dbc01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xivModdingFramework/Mods/Modding.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ public static bool ValidateModlist(string ffxivDirectory = null)
101101
if (res != null)
102102
{
103103
return true;
104+
} else
105+
{
106+
// Modlist failed to parse.
107+
return false;
104108
}
105109
}
106110
catch (Exception ex)
@@ -193,7 +197,7 @@ internal static async Task<ModList> INTERNAL_GetModList(bool writeEnabled)
193197
}
194198
catch(Exception ex)
195199
{
196-
throw new FileNotFoundException("Failedto find or parse modlist file.\n\n" + ex.Message);
200+
throw new FileNotFoundException("Failed to find or parse modlist file.\n\n" + ex.Message);
197201
}
198202
finally
199203
{

0 commit comments

Comments
 (0)