samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

undefined method `first' for nil:NilClass if id has no value #218

Closed elrayle closed 5 years ago

elrayle commented 5 years ago

id can be an empty array in which case .first returns nil in two situations...

Expected behavior

If id predicate was not specified, it should default to the subject_uri. This is for backward compatibility.

If id value did not exist, it should be an empty string.

Actual behavior

image