Skip to content

Commit

Permalink
Ignore stack trace frames with null methods
Browse files Browse the repository at this point in the history
  • Loading branch information
parttimenerd committed Mar 13, 2024
1 parent efdf9b3 commit 76264b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/me/bechberger/jfrtofp/processor/Tables.kt
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ class StackTableWrapper(val tables: Tables) {
tables: Tables,
stackTrace: RecordedStackTrace
) =
HashedFrameList(stackTrace.frames.asReversed().map { tables.getFrame(it) })
HashedFrameList(stackTrace.frames
.filter { f -> f.method != null }
.asReversed().map { tables.getFrame(it) })

internal fun getStack(
stackTrace: RecordedStackTrace,
Expand Down

0 comments on commit 76264b6

Please sign in to comment.