- fixed possible NPE if a file contains no supported list

- updated readme
This commit is contained in:
hbeham
2017-11-16 12:05:02 +01:00
parent d9a252a97b
commit ae5320192b
3 changed files with 50 additions and 51 deletions

View File

@@ -1434,6 +1434,8 @@ namespace ChanSort.Ui
private bool GetGridColumnVisibility(GridColumn col)
{
var list = this.CurrentChannelList;
if (list == null)
return false;
var filter = list.VisibleColumnFieldNames;
if (filter != null && !filter.Contains(col.FieldName))
return false;