changeset 10826:8fd9ac5eb0a4

8081756: Mastering Matrix Manipulations Reviewed-by: serb, bae, mschoene
author prr
date Thu, 11 Jun 2015 12:23:47 -0700
parents 608656dfa6ab
children 3767befecb32
files src/share/native/sun/java2d/cmm/lcms/cmsopt.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/java2d/cmm/lcms/cmsopt.c	Thu Jun 11 10:16:58 2015 -0700
+++ b/src/share/native/sun/java2d/cmm/lcms/cmsopt.c	Thu Jun 11 12:23:47 2015 -0700
@@ -260,7 +260,9 @@
                             cmsStage* Multmat = cmsStageAllocMatrix(Lut->ContextID, 3, 3, (const cmsFloat64Number*) &res, NULL);
 
                             // Recover the chain
+                            if (Multmat != NULL) {
                             Multmat->Next = chain;
+                            }
                             *pt1 = Multmat;
                      }