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

fix null derefence example does (testing muse, does20) #3

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

Conversation

limonkufu
Copy link

No description provided.

@@ -81,7 +81,7 @@ public AttackResult completed(@PathVariable("userId") String userId, @RequestBod
return failed(this).feedback("idor.edit.profile.failure4").build();
}

if (currentUserProfile.getColor().equals("black") && currentUserProfile.getRole() <= 1) {
if ("black".equals(currentUserProfile.getColor()) && currentUserProfile.getRole() <= 1) {
return success(this)
.feedback("idor.edit.profile.success2")
.output(userSessionData.getValue("idor-updated-own-profile").toString())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NULL_DEREFERENCE: object returned by IDOREditOtherProfiile.userSessionData.getValue("idor-updated-own-profile") could be null and is dereferenced at line 87.

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