Aklakan commented on code in PR #3027:
URL: https://github.com/apache/jena/pull/3027#discussion_r2058630555


##########
jena-arq/src/main/java/org/apache/jena/web/HttpSC.java:
##########
@@ -306,7 +306,7 @@ public boolean isServerError()
       */
      public static Code getCode(int code)
      {
-         if (code <= MAX_CODE)
+         if (code >= 0 && code <= MAX_CODE)

Review Comment:
   Needed to have server side events (SSE) working in the spatial indexer fmod; 
setting up a servlet response for SSE causes this method to become called with 
a code of -1 which then raises an IndexOutOfBoundsException.



-- 
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.

To unsubscribe, e-mail: pr-unsubscr...@jena.apache.org

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


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

Reply via email to