You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed a potential issue in the FileTarget.java file where a boxed Boolean is used directly in a boolean expression. This occurs in the toPath method, specifically at this line. The use of a boxed Boolean (this.overwrite) in a conditional check might lead to a NullPointerException if the Boolean object is null.
Potential Impact
In cases where this.overwrite is null, attempting to evaluate it in a boolean context (if (this.overwrite)) will throw a NullPointerException, leading to unexpected crashes or behavior.
A much compliant solution here will be to use a Primitive Boolean Expression.
I've noticed a potential issue in the FileTarget.java file where a boxed Boolean is used directly in a boolean expression. This occurs in the toPath method, specifically at this line. The use of a boxed Boolean (this.overwrite) in a conditional check might lead to a NullPointerException if the Boolean object is null.
Potential Impact
In cases where this.overwrite is null, attempting to evaluate it in a boolean context (if (this.overwrite)) will throw a NullPointerException, leading to unexpected crashes or behavior.
A much compliant solution here will be to use a Primitive Boolean Expression.
@yegor256 Can you please approve this issue?
The text was updated successfully, but these errors were encountered: