diff --git a/tools/cldr-apps/src/main/java/org/unicode/cldr/web/ReportsDB.java b/tools/cldr-apps/src/main/java/org/unicode/cldr/web/ReportsDB.java index 4d32562982a..56ff19f99f3 100644 --- a/tools/cldr-apps/src/main/java/org/unicode/cldr/web/ReportsDB.java +++ b/tools/cldr-apps/src/main/java/org/unicode/cldr/web/ReportsDB.java @@ -91,10 +91,16 @@ public ReportStatus getReportStatus(Integer user, CLDRLocale locale) { locale.getBaseName()); ResultSet rs = ps.executeQuery(); ) { while (rs.next()) { - final String report = rs.getString("report"); + final String reportStr = rs.getString("report"); + ReportId report = null; + try { + report = ReportId.valueOf(reportStr); + } catch (IllegalArgumentException iae) { + continue; // skip illegal enum values. may be a 'retired' enum + } final Boolean completed = rs.getBoolean("completed"); final Boolean acceptable = rs.getBoolean("acceptable"); - status.mark(ReportId.valueOf(report), completed, acceptable); + status.mark(report, completed, acceptable); } } catch (SQLException e) { SurveyLog.logException(e, "fetching reportStatus for " + user + ":" + locale);