vivo-project / VIVO

VIVO is an extensible semantic web application for research discovery and showcasing scholarly work
http://vivoweb.org
BSD 3-Clause "New" or "Revised" License
205 stars 129 forks source link

NullPointerException when fetching uncomplete resources #3891

Closed ivanmrsulja closed 1 year ago

ivanmrsulja commented 1 year ago

Describe the bug When trying to fetch resources that have one or more optional attributes NullPointerException is invoked when value(s) for said fields are not set.

To Reproduce Steps to reproduce the behavior:

  1. Import .n3 files from here
  2. Change line 232 (?uri ?label ?type) to (?uri ?first_name ?type)

Expected behavior Resources should be fetched whether they have a value assigned to optional attributes or not.

VIVO log Log file for the error is available here