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
11 changes: 7 additions & 4 deletions methods/flex-micro.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,15 @@ window.SENTRY_INIT_METHODS["flex-micro"] = {
};

var match = function(stack) {
let micros = window.__SENTRY_MICRO__.instances;
for (const iname in micros) {
if (stack.match(micros[iname].matcher)) {
return micros[iname];
if (stack) {
let micros = window.__SENTRY_MICRO__.instances;
for (const iname in micros) {
if (stack.match(micros[iname].matcher)) {
return micros[iname];
}
}
}

return null;
};

Expand Down