Merge branch 'RED-9988-main' into 'main'

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

See merge request fforesight/layout-parser!210
This commit is contained in:
Dominique Eifländer 2024-09-02 09:56:53 +02:00
commit 292e5b215e

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;