diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs
index 4b70e7ba..7925f615 100644
--- a/ENI2/DetailRootControl.xaml.cs
+++ b/ENI2/DetailRootControl.xaml.cs
@@ -755,14 +755,14 @@ namespace ENI2
{
POBA poba = pobaMessage.Elements[0] as POBA;
- if (crewaMessage.Elements.Count != poba.TotalCrewMembersOnBoardUponArrival)
+ if (crewaMessage.Elements.Count != (poba.TotalCrewMembersOnBoardUponArrival ?? 0))
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "POBA crew member count different from CREW count!", null, "Crew count mismatch", null, "CREWA");
mv.MessageGroupName = Properties.Resources.textOverview;
vViolations.Add(mv);
}
- if(pasaMessage.Elements.Count != poba.TotalPassengersOnBoardUponArrival)
+ if(pasaMessage.Elements.Count != (poba.TotalPassengersOnBoardUponArrival ?? 0))
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "POBA passenger count different from PAS count!", null, "Passenger count mismatch", null, "PASA");
mv.MessageGroupName = Properties.Resources.textOverview;
@@ -771,14 +771,14 @@ namespace ENI2
POBD pobd = pobdMessage.Elements[0] as POBD;
- if (crewdMessage.Elements.Count != pobd.TotalCrewMembersOnBoardUponDeparture)
+ if (crewdMessage.Elements.Count != (pobd.TotalCrewMembersOnBoardUponDeparture ?? 0))
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "POBD crew member count different from CREW count!", null, "Crew count mismatch", null, "CREWD");
mv.MessageGroupName = Properties.Resources.textOverview;
vViolations.Add(mv);
}
- if (pasdMessage.Elements.Count != pobd.TotalPassengersOnBoardUponDeparture)
+ if (pasdMessage.Elements.Count != (pobd.TotalPassengersOnBoardUponDeparture ?? 0))
{
MessageViolation mv = RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "POBD passenger count different from PAS count!", null, "Passenger count mismatch", null, "PASD");
mv.MessageGroupName = Properties.Resources.textOverview;
diff --git a/ENI2/DetailViewControls/WasteDetailControl.xaml b/ENI2/DetailViewControls/WasteDetailControl.xaml
index 6051b940..6a02896f 100644
--- a/ENI2/DetailViewControls/WasteDetailControl.xaml
+++ b/ENI2/DetailViewControls/WasteDetailControl.xaml
@@ -46,7 +46,7 @@
-
+
@@ -54,6 +54,7 @@
+