Skip to content

Commit 9c4bbe8

Browse files
committed
C#: Update guards library implementation.
1 parent 69398b0 commit 9c4bbe8

File tree

1 file changed

+1
-1
lines changed
  • csharp/ql/lib/semmle/code/csharp/controlflow

1 file changed

+1
-1
lines changed

csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ module Internal {
907907
or
908908
// "In string concatenation operations, the C# compiler treats a null string the same as an empty string."
909909
// (https://docs.microsoft.com/en-us/dotnet/csharp/how-to/concatenate-multiple-strings)
910-
e instanceof AddExpr and
910+
e instanceof AddOperation and
911911
e.getType() instanceof StringType
912912
or
913913
e.(DefaultValueExpr).getType().isValueType()

0 commit comments

Comments
 (0)