mehalter code
Projects
Global Views
Pull Requests
Issues
Builds
Packages
Clean-Water-Crowdsourcing
Code
Files
Commits
Branches
Tags
Code Comments
Code Compare
Pull Requests
Issues
List
Boards
Iterations
Builds
Statistics
Code
Child Projects
Projects
Clean-Water-Crowdsourcing
Commits
b76fea94
ctrl
k
Sign In
Added exception handling for when run by JUnit Tests that don't have javafx
Browse Code
Micah Halter
committed
8 years ago
b76fea94
1 parent
7e5ac6ea
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
All occurrences
Clean-Water-Crowdsourcing/src/main/java/org/cs2340/cleanwater/controller/Utils.java
Please wait...
Page is in error, reload to recover