diff --git a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java index 030fdd6eb5..694b925e88 100644 --- a/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java +++ b/cave/com.raytheon.uf.viz.monitor.ffmp/src/com/raytheon/uf/viz/monitor/ffmp/ui/rsc/FFMPDataGenerator.java @@ -213,27 +213,39 @@ public class FFMPDataGenerator { .getCwa())) || (domain.isPrimary() && fmdb .isPrimaryCwa())) { - - setFFMPRow(fbd.get(key), tData, - false, cwa); - - if (virtualBasin != null) { - for (Long id : ft - .getVirtualGageBasinLookupIds( - siteKey, - key, - huc, - resource.basinTableDlg - .getRowName())) { - setFFMPRow( - virtualBasin - .get(id), - tData, true, domain - .getCwa()); - } - } - } - } + try { + setFFMPRow(fbd.get(key), tData, + false, cwa); + } catch (Exception e) { + statusHandler.handle( + Priority.PROBLEM, + "Couldn't create table row" + + e); + } + if (virtualBasin != null) { + for (Long id : ft + .getVirtualGageBasinLookupIds( + siteKey, + key, + huc, + resource.basinTableDlg + .getRowName())) { + try { + setFFMPRow( + virtualBasin + .get(id), + tData, true, + domain.getCwa()); + } catch (Exception e) { + statusHandler + .handle(Priority.PROBLEM, + "Couldn't create table row" + + e); + } + } + } + } + } } else { /* @@ -262,7 +274,10 @@ public class FFMPDataGenerator { setFFMPRow(fbd.get(key), tData, isVGB, null); } catch (Exception e) { - e.printStackTrace(); + statusHandler.handle( + Priority.PROBLEM, + "Couldn't create table row" + + e); } } } @@ -290,20 +305,28 @@ public class FFMPDataGenerator { // virtual basin if (virtualBasin != null) { for (Long id : ft - .getVirtualGageBasinLookupIds( - siteKey, - key, - huc, - resource.basinTableDlg - .getRowName())) { - setFFMPRow( - virtualBasin - .get(id), - tData, true, null); - } - } - } - } + .getVirtualGageBasinLookupIds( + siteKey, + key, + huc, + resource.basinTableDlg + .getRowName())) { + try { + setFFMPRow( + virtualBasin + .get(id), + tData, true, + null); + } catch (Exception e) { + statusHandler + .handle(Priority.PROBLEM, + "Couldn't create table row" + + e); + } + } + } + } + } } } }