ToList() - ArgumentNullException Handling

Viewed 8722

Hi I have a class named Activity,

On a form I create its object array as,

 Activity[] _actList; 

And then do this,

List<Activity> termsList = _actList.ToList<Activity>();

since _actiList is null its throwing the ArgumentNullException.

So my question is,

How can I handle this exception?
Or is there a work around to get the same functionality ?

Please Help!

3 Answers
Related