mike-jumper opened a new pull request #409: GUACAMOLE-422: Correct 
non-short-circuit logic in null check.
URL: https://github.com/apache/guacamole-client/pull/409
 
 
   The changes introduced via #348 include a check of the form:
   
   ```java
   if (timezone != null & !timezone.isEmpty()) {
      ...
   }
   ```
   
   This will result in a `NullPointerException` when `timezone` is null, as the 
`&` ensures `timezone.isEmpty()` will run in all cases. This change corrects 
the above null check such that proper short-circuit logic is used.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to