Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
/// <since_tizen> 3 </since_tizen>
public Bundle(SafeBundleHandle handle)
{
- if (handle == null || handle.IsInvalid)
+ if (handle == null)
{
throw new ArgumentNullException("handle");
}
+ if (handle.IsInvalid)
+ {
+ throw new ArgumentNullException("handle", "handle is invalid");
+ }
+
_handle = Interop.Bundle.DangerousClone(handle.DangerousGetHandle());
_keys = new HashSet<string>();
Interop.Bundle.Iterator iterator = (string key, int type, IntPtr keyval, IntPtr userData) =>