We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69398b0 commit 9c4bbe8Copy full SHA for 9c4bbe8
csharp/ql/lib/semmle/code/csharp/controlflow/Guards.qll
@@ -907,7 +907,7 @@ module Internal {
907
or
908
// "In string concatenation operations, the C# compiler treats a null string the same as an empty string."
909
// (https://docs.microsoft.com/en-us/dotnet/csharp/how-to/concatenate-multiple-strings)
910
- e instanceof AddExpr and
+ e instanceof AddOperation and
911
e.getType() instanceof StringType
912
913
e.(DefaultValueExpr).getType().isValueType()
0 commit comments