sujin0529 commented on PR #1105: URL: https://github.com/apache/commons-lang/pull/1105#issuecomment-1712976171
Hi, @garydgregory In this project, the guard conditioning is well done. However, there is no guard for this function `ReadWriteLockVisitor.<init>`. So I thought it would be good to add guard condition in the same way as below. https://github.com/apache/commons-lang/blob/14be5e577767aa959510f7ebda8dc9647568a789/src/main/java/org/apache/commons/lang3/ArrayUtils.java#L769-L779 I think this error is closer to `IllegalArgumentException` than `NullPointerException`. Thanks. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
