From: hsgwon Date: Thu, 19 Sep 2019 01:06:43 +0000 (+0900) Subject: [Tizen.Multimedia.Camera] Fixed exception bug (#1012) X-Git-Tag: submit/tizen/20190920.005205~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48548249d69eab7055453c8537b675aeb9033cde;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tizen.Multimedia.Camera] Fixed exception bug (#1012) * [Tizen.Multimedia.Camera] Fixed exception bug --- diff --git a/src/Tizen.Multimedia.Camera/Camera/Camera.cs b/src/Tizen.Multimedia.Camera/Camera/Camera.cs index 030d343f7..d37362ec9 100644 --- a/src/Tizen.Multimedia.Camera/Camera/Camera.cs +++ b/src/Tizen.Multimedia.Camera/Camera/Camera.cs @@ -50,6 +50,8 @@ namespace Tizen.Multimedia /// Initializes a new instance of the class. /// /// The camera device to access. + /// Invalid CameraDevice type. + /// The camera feature is not supported. /// 3 /// http://tizen.org/feature/camera public Camera(CameraDevice device) @@ -831,6 +833,8 @@ namespace Tizen.Multimedia /// In case of access to the resources cannot be granted. public void StopFaceDetection() { + ValidateNotDisposed(); + if (_faceDetectedCallback == null) { throw new InvalidOperationException("The face detection is not started.");