Skip to content

Commit 6b4cd32

Browse files
committed
Fix for Dacpac parsing null exception case #848
1 parent 46f7f2c commit 6b4cd32

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/SQLProvider.Common/Ssdt.DacpacParser.fs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ let toXmlNamespaceDoc ns xml =
162162

163163
doc, node, nodes
164164

165-
let attMaybe (nm: string) (node: XmlNode) =
165+
let attMaybe (nm: string) (node: XmlNode) =
166+
if isNull node.Attributes then None
167+
else
166168
node.Attributes
167169
|> Seq.cast<XmlAttribute>
168170
|> Seq.tryFind (fun a -> a.Name = nm)

0 commit comments

Comments
 (0)