PRImA-Research-Lab / prima-core-libs

Core libraries by the PRImA Research Lab
Apache License 2.0
16 stars 15 forks source link

Fix NPE when Polygon below ComposedBlock (ALTO) #1

Closed hoogenm closed 3 years ago

hoogenm commented 9 years ago

When using the Page Viewer with ALTO-XML, I got a NullPointerException when a Shape-element containing a Polygon was located directly below a ComposedBlock-element (which in turn was directly below PrintSpace). In that particular case, currentRegion does not seem to be set at the time the Polygon element is handled. Checking for currentRegion != null seems to fix that problem.

chris1010010 commented 3 years ago

Now fixed