Skip to content

Commit

Permalink
SLLS-270 fix NullPointerException during ShowAllLocationsCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
sophio-japharidze-sonarsource committed Oct 11, 2024
1 parent bf874e9 commit 4b98dc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public String codeAt(@Nullable TextRangeDto range) {

@Nullable
private String getCodeAt(int lineIndex, int startLineOffset, int endLine, int endLineOffset) {
if (lines.size() < lineIndex) {
if (lines == null || lines.size() < lineIndex) {
return null;
} else {
if (lines.get(lineIndex).length() < startLineOffset) {
Expand Down

0 comments on commit 4b98dc8

Please sign in to comment.