Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [2.2.2] - 2022-03
- fix: check file in marker for nullability before proceed

## [2.2.1] - 2020-12-10
- fix: don't upload empty files

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,10 @@ private Map<Object, List<SuggestionForFile>> parseGetAnalysisResponse(
(it.getFile() == null || it.getFile().isEmpty())
? file
: pdUtils.getFileByDeepcodedPath(it.getFile(), project);
if (fileForMarker == null) {
dcLogger.logWarn("File not found for marker: " + it);
return null;
}
return parsePosition2MyTextRange(
it, fileForMarker, Collections.emptyMap());
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public String getDeepCodedFilePath(@NotNull Object file) {
@NotNull
protected abstract String getProjectBasedFilePath(@NotNull Object file);

@Nullable
public abstract Object getFileByDeepcodedPath(String path, Object project);

public abstract Object[] getOpenProjects();
Expand Down