Closed MaPePeR closed 10 years ago
https://github.com/Drakulix/ScrollsModLoader/blob/master/Core/ModLoader.cs#L429
Fails with a NullReferenceException because GetConstructor returns null when no public constructor is found.
NullReferenceException
GetConstructor
null
public
Maybe use GetConstructors(BindingFlags.NonPublic | BindingFlags.Public) and check if only 1 Constructor is given.
GetConstructors(BindingFlags.NonPublic | BindingFlags.Public)
https://github.com/Drakulix/ScrollsModLoader/blob/master/Core/ModLoader.cs#L429
Fails with a
NullReferenceException
becauseGetConstructor
returnsnull
when nopublic
constructor is found.Maybe use
GetConstructors(BindingFlags.NonPublic | BindingFlags.Public)
and check if only 1 Constructor is given.