Skip to content

Commit 1548cbd

Browse files
committed
Fix a compare with nil error that can occasionally happen while the UI is open
1 parent add5fe6 commit 1548cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AddonProfiler.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function NAP:PrepareFilteredData()
289289
local withinHistory = {};
290290
if 0 ~= self.curHistoryRange then
291291
for _, bucket in ipairs(self.snapshots.buckets) do
292-
if bucket.tickMap[bucket.curTickIndex] > minTimestamp then
292+
if bucket.tickMap and bucket.tickMap[bucket.curTickIndex] and bucket.tickMap[bucket.curTickIndex] > minTimestamp then
293293
for tickIndex, timestamp in pairs(bucket.tickMap) do
294294
if timestamp > minTimestamp then
295295
withinHistory[bucket] = tickIndex;

0 commit comments

Comments
 (0)