}
]);
- if (!_isValidAbsoluteURI(args.exifInfo.uri)) {
+ if (!args.exifInfo.uri || !_isValidAbsoluteURI(args.exifInfo.uri)) {
setTimeout(function() {
native_.callIfPossible(args.errorCallback, new WebAPIException(
WebAPIException.INVALID_VALUES_ERR,
native_.call('ExifManager_getThumbnail', {'uri': args.uri}, _callback);
};
-tizen.ExifInformation = function() {
+tizen.ExifInformation = function(exifInitDict) {
validator_.isConstructorCall(this, tizen.ExifInformation);
- var args = validator_.validateArgs(arguments, [
- {
- name: 'ExifInitDict',
- type: validator_.Types.DICTIONARY,
- optional: true,
- nullable: false
- }
- ]);
-
- var uri_ = null,
+ var uri_ = '',
width_ = null,
height_ = null,
deviceMaker_ = null,
gpsTime_ = null,
userComment_ = null;
- var exifInitDict = args.ExifInitDict;
- if (exifInitDict) {
- if (exifInitDict.uri === null) {
- throw new WebAPIException(WebAPIException.INVALID_VALUES_ERR,
- 'Parameter "uri" is required.');
- }
- }
-
Object.defineProperties(this, {
uri: {
get: function() {