changeset 31433:a1c315dd1554

8081756: Mastering Matrix Manipulations Reviewed-by: serb, bae, mschoene
author prr
date Wed, 10 Jun 2015 12:43:18 -0700
parents 15d0fd22179a
children 3b61ff08431b
files jdk/src/java.desktop/share/native/liblcms/cmsopt.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.desktop/share/native/liblcms/cmsopt.c	Wed Jun 10 17:18:10 2015 +0300
+++ b/jdk/src/java.desktop/share/native/liblcms/cmsopt.c	Wed Jun 10 12:43:18 2015 -0700
@@ -260,7 +260,9 @@
                             cmsStage* Multmat = cmsStageAllocMatrix(Lut->ContextID, 3, 3, (const cmsFloat64Number*) &res, NULL);
 
                             // Recover the chain
-                            Multmat->Next = chain;
+                            if (Multmat != NULL) {
+                                Multmat->Next = chain;
+                            }
                             *pt1 = Multmat;
                      }