Don't send empty reports

This commit is contained in:
crschnick 2023-09-27 06:51:32 +00:00
parent bd8eea3159
commit ad5514124c

View file

@ -57,7 +57,7 @@ public class SentryErrorHandler implements ErrorHandler {
var email = ee.getEmail();
var hasEmail = email != null && !email.isBlank();
var text = ee.getUserReport();
var hasText = text != null && !text.isEmpty();
var hasText = text != null && !text.isBlank();
if (hasText || hasEmail) {
var fb = new UserFeedback(id);
if (hasEmail) {