commit | 1227092fdb39583591c851801831364c0afb1dec | [log] [tgz] |
---|---|---|
author | nsandonato <nsandonato> | Mon Aug 16 19:56:48 2010 +0000 |
committer | nsandonato <nsandonato> | Mon Aug 16 19:56:48 2010 +0000 |
tree | 12922515b8df533228bb12105d7a091fbc1aac54 | |
parent | 594a65258a1c80f6db5a99a91bee0528155cb4a5 [diff] |
[319923] NPE in DefaultXMLPartitionFormatter
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java index 61c3cff..447aabc 100644 --- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java +++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/DefaultXMLPartitionFormatter.java
@@ -549,7 +549,7 @@ DOMRegion childDOMRegion = new DOMRegion(); childDOMRegion.documentRegion = nextRegion; childDOMRegion.domNode = childDOMNode; - if (childDOMNode.getFirstStructuredDocumentRegion().equals(nextRegion)) { + if (nextRegion.equals(childDOMNode.getFirstStructuredDocumentRegion())) { // format children. pass in child constraints childDOMRegion = formatRegion(textEdit, formatRange, childrenConstraints, childDOMRegion, previousDocumentRegion); }