Skip to content

Commit a53d11c

Browse files
committed
Fix #28 by using TopScope instead of null
* src/main/scala/com/jonasboner/PrettyPrinter.scala (format): Modify namespace binding default argument to TopScope, was null.
1 parent 3edc6b2 commit a53d11c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scala/xml/PrettyPrinter.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class PrettyPrinter(width: Int, step: Int) {
244244
* @param pscope the namespace to prefix mapping
245245
* @return the formatted string
246246
*/
247-
def format(n: Node, pscope: NamespaceBinding = null): String =
247+
def format(n: Node, pscope: NamespaceBinding = TopScope): String =
248248
sbToString(format(n, pscope, _))
249249

250250
/**

0 commit comments

Comments
 (0)