|
@@ -191,8 +191,8 @@ public final class ErrorManager implements Serializable {
|
191
|
191
|
|
192
|
192
|
tries++;
|
193
|
193
|
System.out.println(response);
|
194
|
|
- } while(response.isEmpty() && !response.get(response.size() - 1).
|
195
|
|
- equalsIgnoreCase("Error report submitted. Thank you.")
|
|
194
|
+ } while((response.isEmpty() || !response.get(response.size() - 1).
|
|
195
|
+ equalsIgnoreCase("Error report submitted. Thank you."))
|
196
|
196
|
|| tries >= 5);
|
197
|
197
|
|
198
|
198
|
checkResponses(error, response);
|
|
@@ -201,7 +201,7 @@ public final class ErrorManager implements Serializable {
|
201
|
201
|
/** Checks the responses and sets status accordingly. */
|
202
|
202
|
private static void checkResponses(final ProgramError error,
|
203
|
203
|
final List<String> response) {
|
204
|
|
- if (response.isEmpty() && response.get(response.size() - 1).
|
|
204
|
+ if (!response.isEmpty() || response.get(response.size() - 1).
|
205
|
205
|
equalsIgnoreCase("Error report submitted. Thank you.")) {
|
206
|
206
|
error.setReportStatus(ErrorReportStatus.FINISHED);
|
207
|
207
|
} else {
|