ctrl k
  • Clean-Water-Crowdsourcing/src/main/java/org/cs2340/cleanwater/controller/Utils.java
    ■ ■ ■ ■ ■ ■
    skipped 78 lines
    79 79   
    80 80   
    81 81   static void showAlert(String title, String header, String message) {
    82  - Alert alert = new Alert(Alert.AlertType.ERROR);
    83  - alert.setTitle(title);
    84  - alert.setHeaderText(header);
    85  - alert.setContentText(message);
     82 + try {
     83 + Alert alert = new Alert(Alert.AlertType.ERROR);
     84 + alert.setTitle(title);
     85 + alert.setHeaderText(header);
     86 + alert.setContentText(message);
    86 87   
    87  - alert.showAndWait();
     88 + alert.showAndWait();
     89 + } catch (ExceptionInInitializerError ignored) {
     90 + } catch (NoClassDefFoundError ignored) {
     91 + }
    88 92   }
    89 93   
    90  - static boolean validateReport(String location, Object[] objs) {
     94 + public static boolean validateReport(String location, Object[] objs) {
    91 95   boolean locMatch = checkLocation(location);
    92 96   boolean notNull = true;
    93 97   
    skipped 47 lines
Please wait...
Page is in error, reload to recover