Skip to content

Commit

Permalink
6817: AutoBoxing rule can crash due to null dereference
Browse files Browse the repository at this point in the history
Reviewed-by: ghb
  • Loading branch information
thegreystone committed Jul 26, 2021
1 parent ef886f3 commit fb71a22
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ protected IResult getResult(IItemCollection items, IPreferenceValueProvider vp,
} else if (firstBranch.getEndFork().getBranchCount() > 0) {
secondFrame = firstBranch.getEndFork().getBranch(0).getFirstFrame();
}
secondFrameFromMostAllocated = secondFrame.getFrame();
if (secondFrame != null) {
secondFrameFromMostAllocated = secondFrame.getFrame();
}
}
allocationSizeByType.put(method.getType(), total);
}
Expand Down

0 comments on commit fb71a22

Please sign in to comment.