Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/Analysis/Engine/Impl/ModuleResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ internal static IEnumerable<string> ResolvePotentialModuleNames(
string relativeModuleName,
bool absoluteImports
) {
string importingFrom = null;
string importingFrom = string.Empty;
if (!string.IsNullOrEmpty(importingFromModuleName)) {
importingFrom = importingFromModuleName;
if (!string.IsNullOrEmpty(importingFromFilePath) && ModulePath.IsInitPyFile(importingFromFilePath)) {
Expand Down Expand Up @@ -149,7 +149,7 @@ bool absoluteImports

private static string GetModuleFullName(string originatingModule, string relativePath) {
// Check if it is indeed relative
if (string.IsNullOrEmpty(relativePath) || relativePath[0] != '.') {
if (string.IsNullOrEmpty(originatingModule) || string.IsNullOrEmpty(relativePath) || relativePath[0] != '.') {
return relativePath;
}

Expand Down