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

Error handling, if ids are missing in the event page, throw a proper message how to fix it. #6

Open
sunix opened this issue Jan 28, 2021 · 0 comments

Comments

@sunix
Copy link
Member

sunix commented Jan 28, 2021

We had that bug for a newly created page

java -jar target/parisjug-event-publisher.jar gcal https://www.parisjug.org/xwiki/wiki/oldversion/view/Meeting/20210209
java.lang.NullPointerException
	at org.parisjug.eventpublisher.eventpage.HtmlEventPage.getTitle(HtmlEventPage.java:20)
	at org.parisjug.eventpublisher.eventpage.HtmlEventPage.getLongTitle(HtmlEventPage.java:77)
	at org.parisjug.eventpublisher.eventpage.HtmlEventPage.generateGcalLink(HtmlEventPage.java:87)
	at org.parisjug.eventpublisher.commands.GenerateGoogleCalendarCommand.run

Problem was, <div id=title> tag was missing in the event page. The message should explain what is the problem and how to fix it in the event page.

@sunix sunix changed the title Error handling, if ids are missing in the event page, throw a proper message how to fix it. Error handling, if ids are missing in the event page, throw a proper message how to fix it. Jan 28, 2021
sunix added a commit to sunix/event-publisher that referenced this issue Mar 18, 2021
sunix added a commit that referenced this issue Mar 19, 2021
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