Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly handle null arguments in System.setSecurityManager
setSecurityManager should do nothing if the input argument is null and no security manager has been established. Before, this was being enforced implicitly. The implicit check no longer works. There is error handling code and code to print a warning message, which needs to avoided in the above "do nothing" scenario. So, an explicit null check has been added to enforce the "no nothing" scenario. Signed-off-by: Babneet Singh <[email protected]>
- Loading branch information