Skip to content

Commit 2a469e0

Browse files
author
Robert Bartoszewski
committed
Fixes
1 parent 4be57bd commit 2a469e0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/BugsnagPerformance/Private/Instrumentation/ViewLoadInstrumentation/Lifecycle/LoadingIndicators/ViewLoadLoadingIndicatorsHandlerImpl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ namespace bugsnag {
2121
class ViewLoadLoadingIndicatorsHandlerImpl: public ViewLoadLoadingIndicatorsHandler {
2222
public:
2323
ViewLoadLoadingIndicatorsHandlerImpl(std::shared_ptr<ViewLoadInstrumentationStateRepository> repository,
24-
std::shared_ptr<ViewLoadSpanFactory> spanFactory_) noexcept
24+
std::shared_ptr<ViewLoadSpanFactory> spanFactory) noexcept
2525
: repository_(repository)
26-
, spanFactory_(spanFactory_) {}
26+
, spanFactory_(spanFactory) {}
2727

2828
void onLoadingIndicatorWasAdded(BugsnagPerformanceLoadingIndicatorView *loadingIndicator) noexcept;
2929
void onViewControllerUpdatedView(UIViewController *viewController) noexcept;
@@ -35,7 +35,7 @@ class ViewLoadLoadingIndicatorsHandlerImpl: public ViewLoadLoadingIndicatorsHand
3535
std::shared_ptr<ViewLoadInstrumentationStateRepository> repository_;
3636
std::shared_ptr<ViewLoadSpanFactory> spanFactory_;
3737
std::mutex mutex_;
38-
ViewLoadLoadingIndicatorsHandlerCallbacks *callbacks_;
38+
ViewLoadLoadingIndicatorsHandlerCallbacks *callbacks_{nullptr};
3939

4040
void updateIndicatorsState(BugsnagPerformanceLoadingIndicatorView *loadingIndicator, ViewLoadLoadingIndicatorState *state) noexcept;
4141
ViewLoadLoadingIndicatorState *newState(BugsnagPerformanceLoadingIndicatorView *loadingIndicator) noexcept;

features/default/loading_indicator.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ Feature: LoadingIndicator view to mark data loading phase
375375
And I wait for 1 second
376376
* no span field "name" equals "[ViewLoad/UIKit]/Fixture.LoadingIndicatorViewNestedViewStopScenario_ParentViewController"
377377
And I invoke "finishLoadingParentInner"
378-
And I wait for 31 spans
378+
And I wait for 32 spans
379379
Then the trace "Content-Type" header equals "application/json"
380380
* the trace "Bugsnag-Sent-At" header matches the regex "^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d\.\d\d\dZ$"
381381
* a span field "name" equals "[ViewLoad/UIKit]/Fixture.LoadingIndicatorViewNestedViewStopScenario_ParentViewController"

0 commit comments

Comments
 (0)