Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for NullPointerException on overview map #21

Open
RinkeHeida opened this issue Apr 26, 2024 · 2 comments
Open

fix for NullPointerException on overview map #21

RinkeHeida opened this issue Apr 26, 2024 · 2 comments

Comments

@RinkeHeida
Copy link

RinkeHeida commented Apr 26, 2024

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
Copy link
Collaborator

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

@RinkeHeida
Copy link
Author

Direct edit is not possible as I am not an owner.
When I edit through github.dev it is not possible to commit before I can do a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants