with this (my.polygon = on;) inserted in to the WDL file i get an empty pointer error.

Any ideas?