chenejac / VIVOTestMigrationJIRA

0 stars 0 forks source link

VIVO-1800: i18n: NullPointerException error when submitting illegal entries #1692

Closed chenejac closed 4 years ago

chenejac commented 4 years ago

Alexander J. Jerabek (Migrated from VIVO-1800) said:

From the profile page: [http://localhost:8080/vivo/display/n7257]

Route: Organizations > [Chemistry] > Profile page > Affiliations tab > Add a new clinical activity Organisations > [Chimie] > Profile page > Ajouter une activité clinique

When adding a start year and end year of 'asdf' we get the following error page:

Une erreur système s'est produite. Message d'erreur: java.lang.NullPointerException

Trace de la pile (trace complète disponible dans le log de VIVO): java.lang.Error: java.lang.NullPointerException at edu.cornell.mannlib.vitro.webapp.edit.n3editing.controller.ProcessRdfFormController.processRequest(ProcessRdfFormController.java:100) at edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet.doGet(FreemarkerHttpServlet.java:108) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at

etc.

This also happens if one enters a valid start/end year and leave the other year field blank.

This happens in both english and french versions.

Page: [http://localhost:8080/vivo/edit/process?roleActivityType=http%3A%2F%2Fvivoweb.org%2Fontology%2Fcore%23Project&activityLabel=&activityLabelDisplay=Projet+de+chimie&roleToActivityPredicate=&existingRoleActivity=http%3A%2F%2Flocalhost%3A8080%2Fvivo%2Findividual%2Fn5622&roleLabel=Sujet+de+recherche&startField-year=asdf&endField-year=asdf&editKey=57412478]

chenejac commented 4 years ago

Andrew Woods said:

Pull-request with null check: https://github.com/vivo-project/Vitro/pull/158

chenejac commented 4 years ago

Brian Lowe said:

[https://github.com/vivo-project/Vitro/commit/48e893195e0da33b29d4c28a945d4a8f4a42b42f]