diff options
Diffstat (limited to 'src/wixext/SqlCompiler.cs')
| -rw-r--r-- | src/wixext/SqlCompiler.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wixext/SqlCompiler.cs b/src/wixext/SqlCompiler.cs index c789f3bd..3fb33993 100644 --- a/src/wixext/SqlCompiler.cs +++ b/src/wixext/SqlCompiler.cs | |||
| @@ -265,7 +265,7 @@ namespace WixToolset.Sql | |||
| 265 | this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName)); | 265 | this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName)); |
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | this.ParseSqlScriptElement(intermediate, section, child, componentId, id.Id); | 268 | this.ParseSqlScriptElement(intermediate, section, child, componentId, id?.Id); |
| 269 | break; | 269 | break; |
| 270 | case "SqlString": | 270 | case "SqlString": |
| 271 | if (null == componentId) | 271 | if (null == componentId) |
| @@ -273,7 +273,7 @@ namespace WixToolset.Sql | |||
| 273 | this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName)); | 273 | this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName)); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | this.ParseSqlStringElement(intermediate, section, child, componentId, id.Id); | 276 | this.ParseSqlStringElement(intermediate, section, child, componentId, id?.Id); |
| 277 | break; | 277 | break; |
| 278 | case "SqlFileSpec": | 278 | case "SqlFileSpec": |
| 279 | if (null == componentId) | 279 | if (null == componentId) |
| @@ -325,8 +325,8 @@ namespace WixToolset.Sql | |||
| 325 | row.Set(3, database); | 325 | row.Set(3, database); |
| 326 | row.Set(4, componentId); | 326 | row.Set(4, componentId); |
| 327 | row.Set(5, user); | 327 | row.Set(5, user); |
| 328 | row.Set(6, fileSpec.Id); | 328 | row.Set(6, fileSpec?.Id); |
| 329 | row.Set(7, logFileSpec.Id); | 329 | row.Set(7, logFileSpec?.Id); |
| 330 | if (0 != attributes) | 330 | if (0 != attributes) |
| 331 | { | 331 | { |
| 332 | row.Set(8, attributes); | 332 | row.Set(8, attributes); |
