Procházet zdrojové kódy

removed possible null reference

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@815330 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_0
Maximilian Berger před 14 roky
rodič
revize
98060eef9d

+ 5
- 5
src/java/org/apache/fop/render/pdf/AbstractImageAdapter.java Zobrazit soubor

@@ -129,12 +129,12 @@ public abstract class AbstractImageAdapter implements PDFImage {
if (cs == null && desc.startsWith("sRGB")) {
//It's the default sRGB profile which we mapped to DefaultRGB in PDFRenderer
cs = doc.getResources().getColorSpace("DefaultRGB");
if (cs == null) {
//sRGB hasn't been set up for the PDF document
//so install but don't set to DefaultRGB
cs = PDFICCBasedColorSpace.setupsRGBColorSpace(doc);
}
}
if (cs == null) {
// sRGB hasn't been set up for the PDF document
// so install but don't set to DefaultRGB
cs = PDFICCBasedColorSpace.setupsRGBColorSpace(doc);
}
pdfICCStream = cs.getICCStream();
}
return pdfICCStream;

Načítá se…
Zrušit
Uložit