Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6311


Ignore:
Timestamp:
05/27/11 18:16:28 (14 years ago)
Author:
dhohl
Message:

#1499
If error occurred will GetRuns the application does not throw an Exception anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/Controllers/FilterController.cs

    r6305 r6311  
    2828            fm.Content = (CombinedFilter)Session["Content"];
    2929            QueryServiceClient client = Query.GetClientFactory();
    30            
    31             long[] ids = client.GetRunIds(fm.Content);
    32 
    33             Response.Write("Found <" + ids.Count() + "> Runs.");
     30            long[] ids;
     31
     32            try
     33            {
     34                ids = client.GetRunIds(fm.Content);
     35            }
     36            catch (Exception e)
     37            {
     38                ids = new long[0];
     39            }
     40
    3441            QueryModel qm = new QueryModel();
    3542            qm.Runs = ids;
Note: See TracChangeset for help on using the changeset viewer.