mapfish / mapfish-print-v2

MapFish Print allows printing maps as PDFs and is used by mapfish.org, geoserver extension and core-genet work.
http://www.mapfish.org/doc/print/
GNU General Public License v3.0
0 stars 11 forks source link

fix for NullPointerException on overview map #21

Open RinkeHeida opened 4 months ago

RinkeHeida commented 4 months ago

I have a solution for this error when using an overviewMap: java.lang.NullPointerException: null at org.mapfish.print.map.MapChunkDrawer.renderImpl(MapChunkDrawer.java:86

I seem not be able to push my commit to this repo, can you add me as contributor?

Or use this fix in the next release:

src\main\java\org\mapfish\print\map\MapChunkDrawer.java

        mainTransformer = context.getLayout().getMainPage().getMap(name).createTransformer(context, params);

->

        mainTransformer = context.getLayout().getMainPage().getMap(null).createTransformer(context, params);
jodygarnett commented 2 months ago

Can you add that as a PR? You can do so right from GitHub by clicking edit on the file...

This project is not actively maintained so you really have to do stuff yourself there is nobody listening to do work for ya