mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
C#: Fix always-null bug in TRAP writer
This commit is contained in:
@@ -285,7 +285,7 @@ namespace Semmle.Extraction
|
||||
public static string NestPaths(ILogger logger, string outerpath, string innerpath, InnerPathComputation innerPathComputation)
|
||||
{
|
||||
string nested = innerpath;
|
||||
if (outerpath != null || outerpath.Length != 0)
|
||||
if (!string.IsNullOrEmpty(outerpath))
|
||||
{
|
||||
if (!Path.IsPathRooted(innerpath) && innerPathComputation == InnerPathComputation.ABSOLUTE)
|
||||
innerpath = Path.GetFullPath(innerpath);
|
||||
|
||||
Reference in New Issue
Block a user