Skip to content
This repository was archived by the owner on Oct 27, 2025. It is now read-only.

Commit bfe7fdb

Browse files
committed
MOPPAND-1603: Fix for ConductorNavigator getActivity() NPE crash.
1 parent 08f59c1 commit bfe7fdb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/ee/ria/DigiDoc/android/utils/navigator/conductor/ConductorNavigator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public void removeBackButtonClickListener(BackButtonClickListener listener) {
163163

164164
@Override
165165
public Activity activity() {
166+
if (router == null) {
167+
throw new IllegalStateException("Router is null");
168+
}
166169
Activity activity = router.getActivity();
167170
if (activity == null) {
168171
throw new IllegalStateException("Activity is null");

0 commit comments

Comments
 (0)