Merge branch 'RED-9988-4.2' into 'release/0.159.x'

RED-9988: Fixed NPE when image representation is not present

See merge request fforesight/layout-parser!209
This commit is contained in:
Dominique Eifländer 2024-09-02 09:26:16 +02:00
commit a50b047cbb

View File

@ -22,11 +22,10 @@ public class ClassifiedImage {
private boolean isAppendedToSection;
private boolean hasTransparency;
private int page;
@NonNull
private String representation;
public ClassifiedImage(@NonNull Rectangle2D position, @NonNull ImageType imageType, boolean hasTransparency, int page, @NonNull String representation) {
public ClassifiedImage(@NonNull Rectangle2D position, @NonNull ImageType imageType, boolean hasTransparency, int page, String representation) {
this.position = position;
this.imageType = imageType;