Skip to content

Commit

Permalink
Fix NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov committed Dec 25, 2024
1 parent d4978da commit 42d3fd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public void parseChunk(Operator rawOperator, List<COSBase> arguments) {
case Operators.SC_FILL:
if (this.graphicsState.isProcessColorOperators()) {
PDColorSpace colorSpace = this.graphicsState.getFillColorSpace();
ASAtom colorSpaceType = colorSpace.getType();
ASAtom colorSpaceType = colorSpace != null ? colorSpace.getType() : null;
if (ASAtom.DEVICERGB.equals(colorSpaceType) || ASAtom.DEVICEGRAY.equals(colorSpaceType) ||
ASAtom.DEVICECMYK.equals(colorSpaceType) || ASAtom.CALRGB.equals(colorSpaceType) ||
ASAtom.CALGRAY.equals(colorSpaceType) || ASAtom.INDEXED.equals(colorSpaceType) ||
Expand Down

0 comments on commit 42d3fd3

Please sign in to comment.