You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by GitBox <gi...@apache.org> on 2020/09/01 12:08:20 UTC

[GitHub] [jena] afs commented on a change in pull request #789: JENA-1957: targetClass=, missing propertyParams, NodeShape sh:node.

afs commented on a change in pull request #789:
URL: https://github.com/apache/jena/pull/789#discussion_r481088290



##########
File path: jena-base/src/main/java/org/apache/jena/atlas/lib/CollectionUtils.java
##########
@@ -31,6 +32,10 @@
 
     /** Return an element from a collection. */ 
     public static <T> T oneElt(Collection<T> collection) {
+        if ( collection.isEmpty() )

Review comment:
       Done (the calls were safe anyway).




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org