diff --git a/ENI2/Controls/POListControl.xaml.cs b/ENI2/Controls/POListControl.xaml.cs index c6b0e3eb..0985b92f 100644 --- a/ENI2/Controls/POListControl.xaml.cs +++ b/ENI2/Controls/POListControl.xaml.cs @@ -233,7 +233,7 @@ namespace ENI2.Controls // suche auslösen this.searchResult = DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).GetMessageCoresWithFilters(filterDict); // alle anderen Häfen weg - this.searchResult.RemoveAll(item => !item.PoC.Equals("DEBRV") && !item.PoC.Equals("DEWHV") && !item.PoC.Equals("DEWVN")); + this.searchResult.RemoveAll(item => (item.PoC == null) || (!item.PoC.Equals("DEBRV") && !item.PoC.Equals("DEWHV") && !item.PoC.Equals("DEWVN"))); // rückwärts iterieren um nach ETA und ATA zu filtern if (this.searchResult.Count > 0)