-Fixed JToken Load and Parse methods not checking for incomplete content
This commit is contained in:
@@ -185,10 +185,7 @@ namespace Newtonsoft.Json.Linq
|
||||
JConstructor c = new JConstructor((string)reader.Value);
|
||||
c.SetLineInfo(reader as IJsonLineInfo);
|
||||
|
||||
if (!reader.Read())
|
||||
throw new Exception("Error reading JConstructor from JsonReader.");
|
||||
|
||||
c.ReadContentFrom(reader);
|
||||
c.ReadTokenFrom(reader);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user