diff --git a/coders/jp2.c b/coders/jp2.c
index cc8d33c..d966bb3 100644
--- a/coders/jp2.c
+++ b/coders/jp2.c
@@ -622,7 +622,7 @@
             ThrowReaderException(CorruptImageError,"MemoryAllocationFailed");
           icc_profile=(StringInfo *) GetImageProfile(image,"icc");
           if (icc_profile == (StringInfo *) NULL)
-            (void) SetImageProfile(image,"icc",profile);
+            (void) SetImageProfile(image,"icc",profile,exception);
           else
             (void) ConcatenateStringInfo(icc_profile,profile);
           profile=DestroyStringInfo(profile);