Skip to content

Commit

Permalink
Merge pull request #174 from NordicSemiconductor/bigfix/no-logger
Browse files Browse the repository at this point in the history
Fixed crash when nRF Logger is not installed
  • Loading branch information
philips77 authored Aug 16, 2024
2 parents 1a22bcd + 858c2ce commit 117d362
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public class MainActivity extends AppCompatActivity
@Inject
BluetoothDevice device;
@Inject
@Nullable
Uri logSessionUri;

private Fragment deviceFragment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import android.bluetooth.BluetoothDevice;
import android.net.Uri;

import androidx.annotation.Nullable;

import dagger.BindsInstance;
import dagger.Subcomponent;
import io.runtime.mcumgr.sample.application.Dagger2Application;
Expand Down Expand Up @@ -40,7 +42,7 @@ interface Builder {
Builder target(final BluetoothDevice device);

@BindsInstance
Builder logSessionUri(final Uri uri);
Builder logSessionUri(final @Nullable Uri uri);

McuMgrSubComponent build();
}
Expand Down

0 comments on commit 117d362

Please sign in to comment.