File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
core/src/main/java/dev/faststats/core Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,15 @@ public void trackError(final String message) {
3333
3434 @ Override
3535 public void trackError (final Throwable error ) {
36- final var compiled = ErrorHelper .compile (error , null );
37- final var hashed = MurmurHash3 .hash (compiled );
38- if (collected .compute (hashed , (k , v ) -> {
39- return v == null ? 1 : v + 1 ;
40- }) > 1 ) return ;
41- reports .put (hashed , compiled );
36+ try {
37+ final var compiled = ErrorHelper .compile (error , null );
38+ final var hashed = MurmurHash3 .hash (compiled );
39+ if (collected .compute (hashed , (k , v ) -> {
40+ return v == null ? 1 : v + 1 ;
41+ }) > 1 ) return ;
42+ reports .put (hashed , compiled );
43+ } catch (final NoClassDefFoundError ignored ) {
44+ }
4245 }
4346
4447 public JsonArray getData () {
You can’t perform that action at this time.
0 commit comments