diff --git a/Memory/Methods/Read.cs b/Memory/Methods/Read.cs index ebed9a6..701793c 100644 --- a/Memory/Methods/Read.cs +++ b/Memory/Methods/Read.cs @@ -419,7 +419,10 @@ public T ReadMemory(string address, string file = "") break; } - return (T) Convert.ChangeType(ReadOutput, typeof(T)); + if (ReadOutput != null) + return (T)Convert.ChangeType(ReadOutput, typeof(T)); + else + return default(T); } ConcurrentDictionary ReadTokenSrcs = new ConcurrentDictionary();