mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 09:47:58 +01:00
Fix a dereference of a possibly null reference.
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Terminal.Gui.Configuration {
|
||||
try {
|
||||
scope! [propertyName].PropertyValue = readHelper?.Read (ref reader, propertyType!, options);
|
||||
} catch (NotSupportedException e) {
|
||||
throw new JsonException ($"Error reading property \"{propertyName}\" of type \"{propertyType.Name}\".", e);
|
||||
throw new JsonException ($"Error reading property \"{propertyName}\" of type \"{propertyType?.Name}\".", e);
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user