We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46f7f2c commit 6b4cd32Copy full SHA for 6b4cd32
1 file changed
src/SQLProvider.Common/Ssdt.DacpacParser.fs
@@ -162,7 +162,9 @@ let toXmlNamespaceDoc ns xml =
162
163
doc, node, nodes
164
165
-let attMaybe (nm: string) (node: XmlNode) =
+let attMaybe (nm: string) (node: XmlNode) =
166
+ if isNull node.Attributes then None
167
+ else
168
node.Attributes
169
|> Seq.cast<XmlAttribute>
170
|> Seq.tryFind (fun a -> a.Name = nm)
0 commit comments