From cdcd50e258738113a917cd0799bd49c3b108fcf2 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 9 Dec 2011 15:16:54 +0100 Subject: [PATCH] Fix an exception if hanging up while rotating --- src/org/linphone/VideoCallActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/linphone/VideoCallActivity.java b/src/org/linphone/VideoCallActivity.java index 6aeb19295..ce6b307c3 100755 --- a/src/org/linphone/VideoCallActivity.java +++ b/src/org/linphone/VideoCallActivity.java @@ -274,7 +274,9 @@ public class VideoCallActivity extends Activity implements LinphoneOnCallStateCh @Override protected void onDestroy() { - androidVideoWindowImpl.release(); + if (androidVideoWindowImpl != null) { // Prevent linphone from crashing if correspondent hang up while you are rotating + androidVideoWindowImpl.release(); + } super.onDestroy(); }