diff --git a/conductor/src/main/java/com/bluelinelabs/conductor/Controller.java b/conductor/src/main/java/com/bluelinelabs/conductor/Controller.java index 0558a06b..ba43205c 100644 --- a/conductor/src/main/java/com/bluelinelabs/conductor/Controller.java +++ b/conductor/src/main/java/com/bluelinelabs/conductor/Controller.java @@ -1082,7 +1082,7 @@ private void removeViewReference(@Nullable Context context) { final View inflate(@NonNull ViewGroup parent) { if (view != null && view.getParent() != null && view.getParent() != parent) { detach(view, true, false); - removeViewReference(view.getContext()); + removeViewReference(view != null ? view.getContext() : null); } if (view == null) {