From 57bb018cd8077af2d61c8e60b60c03162feed5aa Mon Sep 17 00:00:00 2001 From: Tae-Young Chung Date: Fri, 24 Mar 2017 20:26:52 +0900 Subject: [PATCH] [MediaVision] Fixed NullReferenceException Change-Id: I306f4e3fab62838d1862faafa73c81623121a88b Signed-off-by: Tae-Young Chung --- packaging/csapi-multimedia.spec | 2 +- src/Tizen.Multimedia/MediaVision/BarcodeGenerator.cs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packaging/csapi-multimedia.spec b/packaging/csapi-multimedia.spec index 9301695..00fabe3 100755 --- a/packaging/csapi-multimedia.spec +++ b/packaging/csapi-multimedia.spec @@ -1,6 +1,6 @@ Name: csapi-multimedia Summary: Tizen Multimedia API for C# -Version: 1.0.46 +Version: 1.0.47 Release: 0 Group: Development/Libraries License: Apache-2.0 diff --git a/src/Tizen.Multimedia/MediaVision/BarcodeGenerator.cs b/src/Tizen.Multimedia/MediaVision/BarcodeGenerator.cs index 55983f7..9cb9aac 100644 --- a/src/Tizen.Multimedia/MediaVision/BarcodeGenerator.cs +++ b/src/Tizen.Multimedia/MediaVision/BarcodeGenerator.cs @@ -270,9 +270,12 @@ namespace Tizen.Multimedia throw new ArgumentNullException(nameof(qrConfig)); } - if (config.TextVisibility == Visibility.Visible) + if (config != null) { - throw new NotSupportedException("Text can't be visible in QR."); + if (config.TextVisibility == Visibility.Visible) + { + throw new NotSupportedException("Text can't be visible in QR."); + } } GenerateImage(config, message, BarcodeType.QR, imageConfig, (int)qrConfig.Mode, -- 2.7.4