Fix wrong code (#192)
authormk5004lee <37102375+mk5004lee@users.noreply.github.com>
Thu, 29 Mar 2018 02:46:09 +0000 (11:46 +0900)
committersemun-lee <35090067+semun-lee@users.noreply.github.com>
Thu, 29 Mar 2018 02:46:09 +0000 (11:46 +0900)
- value style, is compared with null

Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/Tizen.Applications.Notification/Tizen.Applications.Notifications/NotificationStyleBinder.cs

index 8b837bc..04b8e80 100755 (executable)
@@ -99,7 +99,7 @@ namespace Tizen.Applications.Notifications
                 }
             }
 
-            ret = Interop.Notification.SetImage(notification.Handle, NotificationImage.Background, style?.BackgroundImage);
+            ret = Interop.Notification.SetImage(notification.Handle, NotificationImage.Background, style.BackgroundImage);
             if (ret != NotificationError.None)
             {
                 throw NotificationErrorFactory.GetException(ret, "unable to set background Image");