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

NullpointerException on TileEventHandler #60

Open
rsteph-de opened this issue Aug 7, 2023 · 1 comment
Open

NullpointerException on TileEventHandler #60

rsteph-de opened this issue Aug 7, 2023 · 1 comment

Comments

@rsteph-de
Copy link
Member

rsteph-de commented Aug 7, 2023

The MCRTileEventhandler throws sometimes the following exception:

java.lang.NullPointerException: Cannot invoke "org.mycore.iview2.services.MCRTilingQueue.remove(String, String)" 
    because the return value of "org.mycore.iview2.services.MCRTilingQueue.getInstance()" is null
       at org.mycore.iview2.frontend.MCRIView2Commands.deleteImageTiles(MCRIView2Commands.java:408)
       at org.mycore.iview2.events.MCRImageTileEventHandler.handlePathDeleted(MCRImageTileEventHandler.java:66)
       at org.mycore.common.events.MCREventHandlerBase.doHandleEvent(MCREventHandlerBase.java:110)
       at org.mycore.common.events.MCREventManager.handleEvent(MCREventManager.java:153)
       ... 22 more
@rsteph-de
Copy link
Member Author

As a temporary solution I will provide a wrapper for the Eventhandler
which Logs the Exception and ignores it.

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

1 participant