Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update RAD.java to account for null isForceDiff #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sumitraina
Copy link

The constructor for the class RAD expects an optional argument for the class member isForceDiff which is a Boolean wrapper (line 46). If the argument is not passed in, the member stays null.

line 46: this.isForceDiff = Boolean.parseBoolean(parameters[3]);

This throws an NPE at line 181 where the code checks if (this.isForceDiff).
line 181: } else if (this.isForceDiff) {

To overcome this, isForceDiff has to be passed at least as False.

Fix: The code should check for null at line 181 or make isForceDiff primitive for it to default to false.

Raised an issue at #11

The constructor for the class RAD expects an optional argument for the class member isForceDiff which is a Boolean wrapper (line 46). If the argument is not passed in, the member stays null.

line 46: this.isForceDiff = Boolean.parseBoolean(parameters[3]);

This throws an NPE at line 181 where the code checks if (this.isForceDiff).
line 181: } else if (this.isForceDiff) {

To overcome this, isForceDiff has to be passed at least as False.

Fix: The code should check for null at line 181 or make isForceDiff primitive for it to default to false.

Raised an issue at Netflix#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant