]> granicus.if.org Git - imagemagick/commitdiff
Don't throw exception if image registry tag is not found
authorCristy <urban-warrior@imagemagick.org>
Sun, 26 Nov 2017 15:17:49 +0000 (10:17 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 26 Nov 2017 15:17:49 +0000 (10:17 -0500)
MagickCore/registry.c

index 2e159f7f8878492ae837d1f0cf9b33ffcc1ad550..b0ad85666171840caeee43749f6e73b4ca4b6397 100644 (file)
@@ -199,11 +199,7 @@ MagickExport void *GetImageRegistry(const RegistryType type,const char *key,
     return((void *) NULL);
   registry_info=(RegistryInfo *) GetValueFromSplayTree(registry,key);
   if (registry_info == (void *) NULL)
-    {
-      (void) ThrowMagickException(exception,GetMagickModule(),RegistryError,
-        "UnableToGetRegistryID","`%s'",key);
-      return((void *) NULL);
-    }
+    return((void *) NULL);
   value=(void *) NULL;
   switch (type)
   {