@@ -80,9 +80,9 @@ public void initialize(ReadableMap configMap, Promise promise) {
80
80
.setGlobalAttributes (attributesFromMap (globalAttributes ))
81
81
.setDeploymentEnvironment (deploymentEnvironment )
82
82
.disableActivityLifecycleMonitoring ()
83
- .build (Objects . requireNonNull ( getReactApplicationContext ().getCurrentActivity ()). getApplication ());
83
+ .build (( Application ) getReactApplicationContext ().getApplicationContext ());
84
84
85
- if ( "true" .equals (sessionRecording )) {
85
+ if ( Boolean . TRUE . toString () .equals (sessionRecording )) {
86
86
Middleware middleware = Middleware .getInstance ();
87
87
middleware .startNativeRecording (getCurrentActivity ());
88
88
}
@@ -103,7 +103,8 @@ public void nativeCrash() {
103
103
new Thread (() -> {
104
104
try {
105
105
Thread .sleep (2000 );
106
- } catch (InterruptedException e ) {}
106
+ } catch (InterruptedException e ) {
107
+ }
107
108
throw new RuntimeException ("test crash" );
108
109
}).start ();
109
110
}
@@ -242,7 +243,7 @@ private ReactSpanProperties propertiesFromMap(SpanMapReader mapReader) {
242
243
243
244
final ReadableArray readerEvents = mapReader .getEvents ();
244
245
final List <EventData > newEvents = new ArrayList <>();
245
- for (int index = 0 ; index < readerEvents .size (); index ++) {
246
+ for (int index = 0 ; index < readerEvents .size (); index ++) {
246
247
final ReadableMap readableMap = readerEvents .getMap (index );
247
248
final EventData eventData = EventData .create (
248
249
Long .parseLong (Objects .requireNonNull (readableMap .getString ("time" ))),
0 commit comments