Skip to content

Commit e5ed061

Browse files
author
glenn.volckaert
committed
Change ternary operation to if statement for cross compitibility between java and .net
DEVSIX-3538
1 parent 2153d4e commit e5ed061

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

kernel/src/main/java/com/itextpdf/kernel/pdf/function/PdfType3Function.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,12 @@ private List<IPdfFunction> checkAndGetFunctions(PdfArray functionsArray) {
298298
if (functionsArray == null || functionsArray.size() == 0) {
299299
throw new PdfException(KernelExceptionMessageConstant.INVALID_TYPE_3_FUNCTION_NULL_FUNCTIONS);
300300
}
301-
Integer tempOutputSize = getRange() == null ? (Integer) null : getOutputSize();
301+
302+
Integer tempOutputSize = null;
303+
if (getRange()!= null)
304+
{
305+
tempOutputSize = getOutputSize();
306+
}
302307
final List<IPdfFunction> tempFunctions = new ArrayList<>();
303308
for (PdfObject funcObj : functionsArray) {
304309
if (!(funcObj instanceof PdfDictionary)) {

0 commit comments

Comments
 (0)