mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Fix initialization of model lists in ATA comparison.
This commit is contained in:
@@ -246,6 +246,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
|
||||
Identify.IdentifyDevice? leftNullable = left.IdentifyDevice;
|
||||
Identify.IdentifyDevice? rightNullable = right.IdentifyDevice;
|
||||
model.ValueNames = new List<string>();
|
||||
model.LeftValues = new List<string>();
|
||||
model.RightValues = new List<string>();
|
||||
|
||||
if(!leftNullable.HasValue &&
|
||||
!rightNullable.HasValue)
|
||||
@@ -276,9 +279,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
|
||||
Identify.IdentifyDevice leftValue = left.IdentifyDevice.Value;
|
||||
Identify.IdentifyDevice rightValue = right.IdentifyDevice.Value;
|
||||
model.ValueNames = new List<string>();
|
||||
model.LeftValues = new List<string>();
|
||||
model.RightValues = new List<string>();
|
||||
|
||||
foreach(FieldInfo fieldInfo in leftValue.GetType().GetFields())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user