title: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "length" from undefined
body: <p>When i do POST (a json string) using curl i'm getting following error[1];
  Anybody knows, how to fix this?
  I post my json as <code>-d @endpointconfigimpl.json</code> and the file content is like;</p>
  
  <pre><code>endpoint_config='{
      "production_endpoints": {
          "url": "http://gdata.youtube.com/feeds/api/standardfeeds",
          "config": null
      },
      "endpoint_type": "http"
  }'
  </code></pre>
  
  <blockquote>
    <p>[1] Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot
    read property "length" from undefined
    (/publisher/site/blocks/item-design/ajax/add.jag#11)
          at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
          at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
          at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)</p>
  </blockquote>