diff --git a/android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java b/android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java index 14573ae9249..c1bdcca960f 100644 --- a/android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java +++ b/android/app/src/main/java/com/reactnativenavigation/controllers/NavigationActivity.java @@ -96,7 +96,10 @@ private void createLayout() { if (hasBackgroundColor()) { layout.asView().setBackgroundColor(AppStyle.appStyle.screenBackgroundColor.getColor()); } - String screenBackgroundImageName = activityParams.screenParams.styleParams.screenBackgroundImageName; + String screenBackgroundImageName = null; + if (activityParams.screenParams != null && activityParams.screenParams.styleParams != null) { + screenBackgroundImageName = activityParams.screenParams.styleParams.screenBackgroundImageName; + } if (screenBackgroundImageName != null) { layout.asView().setBackgroundResource(this.getResources().getIdentifier(screenBackgroundImageName, "drawable", this.getPackageName())); }