Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ private static boolean sanityCheckSnapshotAssignment(
Snapshot snapshot, StackTraceElement[] innerTrace, int currentIdx) {
String className = snapshot.getProbe().getLocation().getType();
String methodName = snapshot.getProbe().getLocation().getMethod();
if (innerTrace.length == 0) {
LOGGER.debug("innerTrace is empty");
return false;
}
if (currentIdx < 0 || currentIdx >= innerTrace.length) {
LOGGER.warn(
"currentIdx={} out of bounds of innerTrace array length={}",
Expand Down