summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1bd9465)
Change-Id: Ia0ae4fa37f3c6202df36330bbc4dfaaaaed245f8
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
{
shortcutTemplates.Clear();
{
shortcutTemplates.Clear();
+ if (string.IsNullOrEmpty(appId))
+ {
+ throw ShortcutErrorFactory.GetException(Interop.Shortcut.ErrorCode.InvalidParameter, null);
+ }
+
Interop.Shortcut.ListCallback callback = (appName, iconPath, shortcutName, extrakey, extraData, user_data) =>
{
ShortcutTemplate template = new ShortcutTemplate
Interop.Shortcut.ListCallback callback = (appName, iconPath, shortcutName, extrakey, extraData, user_data) =>
{
ShortcutTemplate template = new ShortcutTemplate
- Interop.Shortcut.GetList(appId, callback, IntPtr.Zero);
+ Interop.Shortcut.ErrorCode err = Interop.Shortcut.GetList(appId, callback, IntPtr.Zero);
+ if (err < Interop.Shortcut.ErrorCode.None)
+ {
+ throw ShortcutErrorFactory.GetException(err, "unable to get ShortcutTemplate Lists");
+ }
return shortcutTemplates;
}
return shortcutTemplates;
}