This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit ca8be30bbe43658b7fc689bbfc844dd8d0304c61 Author: Gary Gregory <[email protected]> AuthorDate: Tue Jul 4 09:47:05 2023 -0400 Fix name for exception message --- .../org/apache/commons/imaging/formats/jpeg/segments/SofnSegment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SofnSegment.java b/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SofnSegment.java index 92e831de..182d9fa9 100644 --- a/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SofnSegment.java +++ b/src/main/java/org/apache/commons/imaging/formats/jpeg/segments/SofnSegment.java @@ -70,7 +70,7 @@ public class SofnSegment extends Segment { precision = readByte("precision", is, "Not a Valid JPEG File"); height = read2Bytes("height", is, "Not a Valid JPEG File", getByteOrder()); width = read2Bytes("width", is, "Not a Valid JPEG File", getByteOrder()); - numberOfComponents = readByte("Number_of_components", is, + numberOfComponents = readByte("numberOfComponents", is, "Not a Valid JPEG File"); if (numberOfComponents < 0) { throw new ImagingException("The number of components in a SOF0Segment cannot be less than 0!");
