diff --git a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java index f234ff47d..d985b4692 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/Session.java @@ -609,7 +609,9 @@ public CompletableFuture captureBackgroundBitmap(int displayWidth, int dis Runnable cleanResources = () -> { display.surfaceDestroyed(); - mState.mSession.releaseDisplay(display); + if (mState.mSession != null) { + mState.mSession.releaseDisplay(display); + } BitmapCache.getInstance(mContext).releaseCaptureSurface(); };