From 52e0c59203d81b959d58ca29019be390c4825081 Mon Sep 17 00:00:00 2001 From: f43nd1r Date: Wed, 31 Jul 2019 18:51:20 +0200 Subject: [PATCH] maybe fix #43 --- src/main/java/com/faendir/acra/service/BugMerger.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/faendir/acra/service/BugMerger.java b/src/main/java/com/faendir/acra/service/BugMerger.java index 0dfbbb8..c377017 100644 --- a/src/main/java/com/faendir/acra/service/BugMerger.java +++ b/src/main/java/com/faendir/acra/service/BugMerger.java @@ -87,6 +87,7 @@ public class BugMerger { Stacktrace s = iterator.next(); StacktraceMatch match = entityManager.merge(new StacktraceMatch(s, stacktrace, FuzzySearch.ratio(s.getStacktrace(), stacktrace.getStacktrace()))); if (match.getScore() >= b.getApp().getConfiguration().getMinScore()) { + entityManager.flush(); b = mergeBugs(Arrays.asList(s.getBug(), b), s.getBug().getTitle()); } }