adobe-webplatform/Snap.svg — pull request #146 by throrin19 (2013-12-12 13:08:13+00:00)
Title: Patch node

If svg element does not exist, snap.svg throw null error and crash all javascript execution.

In this case, `p.select("defs")` return null but, in your code, you use `p.select("defs").node` directly without test if `p.select("defs")` return null.